Class MinecartInstance<T extends net.minecraft.world.entity.vehicle.AbstractMinecart>

All Implemented Interfaces:
DynamicInstance, Instance, TickableInstance, LightListener, TickingLightListener

public class MinecartInstance<T extends net.minecraft.world.entity.vehicle.AbstractMinecart> extends EntityInstance<T> implements DynamicInstance, TickableInstance
  • Constructor Details

    • MinecartInstance

      public MinecartInstance(MaterialManager materialManager, T entity)
  • Method Details

    • tick

      public void tick()
      Description copied from interface: TickableInstance
      Called every tick, and after initialization.
      DISPATCHED IN PARALLEL, don't attempt to mutate anything outside of this instance.
      Instancer/InstanceData creation/acquisition is safe here.
      Specified by:
      tick in interface TickableInstance
    • 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