public class ErrorLogic extends java.lang.Object implements IErrorLogic
| Constructor and Description |
|---|
ErrorLogic() |
| 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 final boolean setCondition(boolean condition,
IErrorState errorState)
IErrorLogicsetCondition in interface IErrorLogicpublic final boolean contains(IErrorState state)
contains in interface IErrorLogicpublic final boolean hasErrors()
hasErrors in interface IErrorLogicpublic final com.google.common.collect.ImmutableSet<IErrorState> getErrorStates()
getErrorStates in interface IErrorSourcepublic 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 IErrorLogic