Class ChestInstance<T extends net.minecraft.world.level.block.entity.BlockEntity & net.minecraft.world.level.block.entity.LidBlockEntity>

All Implemented Interfaces:
DynamicInstance, Instance, LightListener

public class ChestInstance<T extends net.minecraft.world.level.block.entity.BlockEntity & net.minecraft.world.level.block.entity.LidBlockEntity> extends BlockEntityInstance<T> implements DynamicInstance
  • Constructor Details

    • ChestInstance

      public ChestInstance(MaterialManager materialManager, T blockEntity)
  • Method Details

    • beginFrame

      public void beginFrame()
      Description copied from interface: DynamicInstance
      Called every frame, and after initialization.
      DISPATCHED IN PARALLEL, don't attempt to mutate anything outside this instance.
      Instancer/InstanceData creation/acquisition is safe here.
      Specified by:
      beginFrame in interface DynamicInstance
    • updateLight

      public void updateLight()
      Description copied from class: AbstractInstance
      Called after construction and when a light update occurs in the world.
      If your model needs it, update light here.
      Overrides:
      updateLight in class AbstractInstance
    • remove

      public void remove()
      Description copied from class: AbstractInstance
      Free any acquired resources.
      Specified by:
      remove in class AbstractInstance
    • isChristmas

      public static boolean isChristmas()