Class PartTypeConnectorOmniDirectional.State
java.lang.Object
org.cyclops.integrateddynamics.core.part.PartStateBase<PartTypeConnectorOmniDirectional>
org.cyclops.integrateddynamics.part.PartTypeConnector.State<PartTypeConnectorOmniDirectional>
org.cyclops.integrateddynamics.part.PartTypeConnectorOmniDirectional.State
- All Implemented Interfaces:
Comparable<IPathElement>
,org.cyclops.cyclopscore.persist.IDirtyMarkListener
,IPartState<PartTypeConnectorOmniDirectional>
,IPathElement
- Enclosing class:
PartTypeConnectorOmniDirectional
public static class PartTypeConnectorOmniDirectional.State
extends PartTypeConnector.State<PartTypeConnectorOmniDirectional>
-
Field Summary
Fields inherited from interface org.cyclops.integrateddynamics.api.part.IPartState
GLOBALCOUNTER_KEY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
boolean
boolean
void
readFromNBT
(ValueDeseralizationContext valueDeseralizationContext, net.minecraft.nbt.CompoundTag tag) Read a state from NBT.void
setAddedToGroup
(boolean addedToGroup) void
setGroupId
(int groupId) void
writeToNBT
(ValueDeseralizationContext valueDeseralizationContext, net.minecraft.nbt.CompoundTag tag) Write a state to NBT.Methods inherited from class org.cyclops.integrateddynamics.part.PartTypeConnector.State
compareTo, getCapability, getPartPos, getPosition, setPosition
Methods inherited from class org.cyclops.integrateddynamics.core.part.PartStateBase
addVolatileCapability, clearInventoriesNamed, forceBlockRenderUpdate, gatherCapabilities, generateId, getAspectProperties, getChannel, getDefaultUpdateInterval, getId, getInventoriesNamed, getInventoryNamed, getMaxOffset, getOffsetVariableError, getPriority, getTargetOffset, getTargetSideOverride, getUpdateInterval, initializeOffsets, isDirtyAndReset, isEnabled, isForceBlockRenderUpdateAndReset, isUpdateAndReset, markDirty, markOffsetVariablesChanged, onDirty, readAspectProperties, removeVolatileCapability, requiresOffsetUpdates, sendUpdate, setAspectProperties, setChannel, setEnabled, setInventoryNamed, setMaxOffset, setPriority, setTargetOffset, setTargetSideOverride, setUpdateInterval, updateOffsetVariables, writeAspectProperties
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.cyclops.integrateddynamics.api.part.IPartState
loadInventoryNamed, saveInventoryNamed
-
Constructor Details
-
State
public State()
-
-
Method Details
-
writeToNBT
public void writeToNBT(ValueDeseralizationContext valueDeseralizationContext, net.minecraft.nbt.CompoundTag tag) Description copied from interface:IPartState
Write a state to NBT.- Specified by:
writeToNBT
in interfaceIPartState<PartTypeConnectorOmniDirectional>
- Overrides:
writeToNBT
in classPartStateBase<PartTypeConnectorOmniDirectional>
- Parameters:
valueDeseralizationContext
-tag
- The tag to write to.
-
readFromNBT
public void readFromNBT(ValueDeseralizationContext valueDeseralizationContext, net.minecraft.nbt.CompoundTag tag) Description copied from interface:IPartState
Read a state from NBT.- Specified by:
readFromNBT
in interfaceIPartState<PartTypeConnectorOmniDirectional>
- Overrides:
readFromNBT
in classPartStateBase<PartTypeConnectorOmniDirectional>
- Parameters:
valueDeseralizationContext
- Getter for blocks.tag
- The tag to read from.
-
getReachableElements
- Returns:
- The set of all path elements that can be reached from here.
-
getGroupId
public int getGroupId() -
setGroupId
public void setGroupId(int groupId) -
hasConnectorId
public boolean hasConnectorId() -
isAddedToGroup
public boolean isAddedToGroup() -
setAddedToGroup
public void setAddedToGroup(boolean addedToGroup)
-