Class PartTypeConnector.State<P extends PartTypeConnector>
java.lang.Object
org.cyclops.integrateddynamics.core.part.PartStateBase<P>
org.cyclops.integrateddynamics.part.PartTypeConnector.State<P>
- All Implemented Interfaces:
Comparable<IPathElement>,org.cyclops.cyclopscore.persist.IDirtyMarkListener,IPartState<P>,IPathElement
- Direct Known Subclasses:
PartTypeConnectorMonoDirectional.State,PartTypeConnectorOmniDirectional.State
- Enclosing class:
PartTypeConnector<P extends PartTypeConnector<P,S>, S extends PartTypeConnector.State<P>>
public abstract static class PartTypeConnector.State<P extends PartTypeConnector>
extends PartStateBase<P>
implements IPathElement
-
Field Summary
Fields inherited from interface org.cyclops.integrateddynamics.api.part.IPartState
GLOBALCOUNTER_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint<T> Optional<T> getCapability(P partType, PartCapability<T> capability, INetwork network, IPartNetwork partNetwork, PartTarget target) Get the given capability.protected PartPosorg.cyclops.cyclopscore.datastructure.DimPosvoidsetPosition(PartPos partPos) Methods inherited from class org.cyclops.integrateddynamics.core.part.PartStateBase
addVolatileCapability, clearInventoriesNamed, deserialize, 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, serialize, setAspectProperties, setChannel, setEnabled, setInventoryNamed, setMaxOffset, setPriority, setTargetOffset, setTargetSideOverride, setUpdateInterval, updateOffsetVariables, writeAspectPropertiesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.cyclops.integrateddynamics.api.part.IPartState
loadInventoryNamed, saveInventoryNamedMethods inherited from interface org.cyclops.integrateddynamics.api.path.IPathElement
getReachableElements
-
Constructor Details
-
State
public State()
-
-
Method Details
-
getPartPos
-
getPosition
public org.cyclops.cyclopscore.datastructure.DimPos getPosition()- Specified by:
getPositionin interfaceIPathElement- Returns:
- The position of this element.
-
setPosition
-
compareTo
- Specified by:
compareToin interfaceComparable<P extends PartTypeConnector>
-
getCapability
public <T> Optional<T> getCapability(P partType, PartCapability<T> capability, INetwork network, IPartNetwork partNetwork, PartTarget target) Description copied from interface:IPartStateGet the given capability.- Specified by:
getCapabilityin interfaceIPartState<P extends PartTypeConnector>- Overrides:
getCapabilityin classPartStateBase<P extends PartTypeConnector>- Type Parameters:
T- The capability type.- Parameters:
partType- The part type.capability- The capability to get.network- The network the part belongs to.partNetwork- The part network the part belongs to.target- The target.- Returns:
- The optional capability instance.
-