Class BlockAnimationSection

java.lang.Object
com.hypixel.hytale.server.core.modules.blockanimation.BlockAnimationSection
All Implemented Interfaces:
Component<ChunkStore>, Cloneable

public class BlockAnimationSection extends Object implements Component<ChunkStore>
Stores model animation speed overrides for one chunk section.
  • Field Details

  • Constructor Details

    • BlockAnimationSection

      public BlockAnimationSection()
  • Method Details

    • getComponentType

      @Nonnull public static ComponentType<ChunkStore, BlockAnimationSection> 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

      @Nonnull public BlockAnimationEntry[] toEntries(@Nonnull BlockSection blockSection)
      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

      @Nonnull public Component<ChunkStore> clone()
      Specified by:
      clone in interface Component<ChunkStore>
      Returns:
      a clone instance of the original component instance.