Class EnderChestBlockEntity

java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.EnderChestBlockEntity
All Implemented Interfaces:
ChestAnimationProgress, Tickable

@EnvironmentInterfaces(@EnvironmentInterface(value=CLIENT,itf=ChestAnimationProgress.class))
public class EnderChestBlockEntity
extends BlockEntity
implements ChestAnimationProgress, Tickable
  • Field Details

    • animationProgress

      public float animationProgress
    • lastAnimationProgress

      public float lastAnimationProgress
    • viewerCount

      public int viewerCount
    • ticks

      private int ticks
  • Constructor Details

    • EnderChestBlockEntity

      public EnderChestBlockEntity()
  • Method Details

    • tick

      public void tick()
      Specified by:
      tick in interface Tickable
    • onSyncedBlockEvent

      public boolean onSyncedBlockEvent​(int type, int data)
      Overrides:
      onSyncedBlockEvent in class BlockEntity
    • markRemoved

      public void markRemoved()
      Overrides:
      markRemoved in class BlockEntity
    • onOpen

      public void onOpen()
    • onClose

      public void onClose()
    • canPlayerUse

      public boolean canPlayerUse​(PlayerEntity playerEntity)
    • getAnimationProgress

      @Environment(CLIENT) public float getAnimationProgress​(float tickDelta)
      Specified by:
      getAnimationProgress in interface ChestAnimationProgress