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
-
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 PartPos
org.cyclops.cyclopscore.datastructure.DimPos
void
setPosition
(PartPos partPos) 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, readFromNBT, removeVolatileCapability, requiresOffsetUpdates, sendUpdate, setAspectProperties, setChannel, setEnabled, setInventoryNamed, setMaxOffset, setPriority, setTargetOffset, setTargetSideOverride, setUpdateInterval, updateOffsetVariables, writeAspectProperties, writeToNBT
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
Methods 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:
getPosition
in interfaceIPathElement
- Returns:
- The position of this element.
-
setPosition
-
compareTo
- Specified by:
compareTo
in 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:IPartState
Get the given capability.- Specified by:
getCapability
in interfaceIPartState<P extends PartTypeConnector>
- Overrides:
getCapability
in 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.
-