Enum Class AspectUpdateType
- All Implemented Interfaces:
Serializable,Comparable<AspectUpdateType>,Constable
Different types of aspect update triggers.
I.e., when
IAspect.update(org.cyclops.integrateddynamics.api.network.INetwork, IPartNetwork, IPartType, PartTarget, IPartState) should be called.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUpdate its value on block neigbour changes, i.e., ifBlockBehaviour.neighborChanged(BlockState, Level, BlockPos, Block, BlockPos, boolean),IForgeBlock.onNeighborChange(BlockState, LevelReader, BlockPos, BlockPos)orBlockBehaviour.updateShape(BlockState, Direction, BlockState, LevelAccessor, BlockPos, BlockPos)is called.Update per network tick.If the update method should never be called. -
Method Summary
Modifier and TypeMethodDescriptionstatic AspectUpdateTypeReturns the enum constant of this class with the specified name.static AspectUpdateType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NETWORK_TICK
Update per network tick. -
BLOCK_UPDATE
Update its value on block neigbour changes, i.e., ifBlockBehaviour.neighborChanged(BlockState, Level, BlockPos, Block, BlockPos, boolean),IForgeBlock.onNeighborChange(BlockState, LevelReader, BlockPos, BlockPos)orBlockBehaviour.updateShape(BlockState, Direction, BlockState, LevelAccessor, BlockPos, BlockPos)is called. -
NEVER
If the update method should never be called.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-