Contents
Class BlockAnimationSection
java.lang.Object
com.hypixel.hytale.server.core.modules.blockanimation.BlockAnimationSection
- All Implemented Interfaces:
Component<ChunkStore>, Cloneable
Stores model animation speed overrides for one chunk section.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BuilderCodec<BlockAnimationSection> static final intFields inherited from interface Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclone()static ComponentType<ChunkStore, BlockAnimationSection> longfloatgetSpeed(int index) booleanbooleanhasSpeed(int index) booleanisEmpty()booleanremoveSpeed(int index) booleansetPhase(int index, float phase) booleansetSpeed(int index, float speed) toEntries(BlockSection blockSection) Builds the packet entries for this section.Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Component
cloneSerializable
-
Field Details
-
VERSION
public static final int VERSION- See Also:
-
CODEC
-
-
Constructor Details
-
BlockAnimationSection
public BlockAnimationSection()
-
-
Method Details
-
getComponentType
-
hasSpeed
public boolean hasSpeed(int index) -
getSpeed
public float getSpeed(int index) -
setSpeed
public boolean setSpeed(int index, float speed) -
setPhase
public boolean setPhase(int index, float phase) -
removeSpeed
public boolean removeSpeed(int index) -
isEmpty
public boolean isEmpty() -
getRevision
public long getRevision() -
toEntries
Builds the packet entries for this section.Each entry carries the block that occupies its cell now. A client applies an override only while that block still matches, which keeps an override inert until the matching block data arrives.
-
clearPendingPhases
public void clearPendingPhases() -
hasPendingPhases
public boolean hasPendingPhases() -
clone
- Specified by:
clonein interfaceComponent<ChunkStore>- Returns:
- a clone instance of the original component instance.
-