public class FakeErrorLogic extends java.lang.Object implements IErrorLogic
| Modifier and Type | Field and Description |
|---|---|
static FakeErrorLogic |
instance |
| Modifier and Type | Method and Description |
|---|---|
void |
clearErrors()
Sets all active error states to false
|
boolean |
contains(IErrorState state) |
com.google.common.collect.ImmutableSet<IErrorState> |
getErrorStates() |
boolean |
hasErrors() |
void |
readData(net.minecraft.network.PacketBuffer data) |
boolean |
setCondition(boolean condition,
IErrorState errorState)
Sets the errorState when condition is true, and unsets it when condition is false.
|
void |
writeData(net.minecraft.network.PacketBuffer data)
Network serialization for syncing errors to the client from the server.
|
public static final FakeErrorLogic instance
public boolean setCondition(boolean condition,
IErrorState errorState)
IErrorLogicsetCondition in interface IErrorLogicpublic boolean contains(IErrorState state)
contains in interface IErrorLogicpublic boolean hasErrors()
hasErrors in interface IErrorLogicpublic void clearErrors()
IErrorLogicclearErrors in interface IErrorLogicpublic void writeData(net.minecraft.network.PacketBuffer data)
IErrorLogicwriteData in interface IErrorLogicpublic void readData(net.minecraft.network.PacketBuffer data)
readData in interface IErrorLogicpublic com.google.common.collect.ImmutableSet<IErrorState> getErrorStates()
getErrorStates in interface IErrorSource