Class ShulkerBoxInstance

java.lang.Object
com.jozufozu.flywheel.backend.instancing.AbstractInstance
com.jozufozu.flywheel.backend.instancing.blockentity.BlockEntityInstance<net.minecraft.world.level.block.entity.ShulkerBoxBlockEntity>
com.jozufozu.flywheel.vanilla.ShulkerBoxInstance
All Implemented Interfaces:
DynamicInstance, Instance, LightListener

public class ShulkerBoxInstance extends BlockEntityInstance<net.minecraft.world.level.block.entity.ShulkerBoxBlockEntity> implements DynamicInstance
  • Constructor Details

    • ShulkerBoxInstance

      public ShulkerBoxInstance(MaterialManager materialManager, net.minecraft.world.level.block.entity.ShulkerBoxBlockEntity 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
    • remove

      public void remove()
      Description copied from class: AbstractInstance
      Free any acquired resources.
      Specified by:
      remove in class AbstractInstance
    • 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