Package com.jozufozu.flywheel.vanilla
Class MinecartInstance<T extends net.minecraft.world.entity.vehicle.AbstractMinecart>
java.lang.Object
com.jozufozu.flywheel.backend.instancing.AbstractInstance
com.jozufozu.flywheel.backend.instancing.entity.EntityInstance<T>
com.jozufozu.flywheel.vanilla.MinecartInstance<T>
- 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
-
Field Summary
Fields inherited from class com.jozufozu.flywheel.backend.instancing.entity.EntityInstance
bounds, entityFields inherited from class com.jozufozu.flywheel.backend.instancing.AbstractInstance
materialManager, removed, world -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.jozufozu.flywheel.backend.instancing.entity.EntityInstance
getInstancePosition, getInstancePosition, getVolume, getWorldPosition, tickLightListenerMethods inherited from class com.jozufozu.flywheel.backend.instancing.AbstractInstance
init, isListenerInvalid, onLightUpdate, relight, relight, relight, relight, removeAndMark, shouldReset, updateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.jozufozu.flywheel.api.instance.DynamicInstance
decreaseFramerateWithDistanceMethods inherited from interface com.jozufozu.flywheel.api.instance.Instance
getWorldPositionMethods inherited from interface com.jozufozu.flywheel.light.LightListener
isListenerInvalid, onLightPacket, onLightUpdateMethods inherited from interface com.jozufozu.flywheel.api.instance.TickableInstance
decreaseTickRateWithDistance
-
Constructor Details
-
MinecartInstance
-
-
Method Details
-
tick
public void tick()Description copied from interface:TickableInstanceCalled every tick, and after initialization.
DISPATCHED IN PARALLEL, don't attempt to mutate anything outside of this instance.
Instancer/InstanceDatacreation/acquisition is safe here.- Specified by:
tickin interfaceTickableInstance
-
beginFrame
public void beginFrame()Description copied from interface:DynamicInstanceCalled every frame, and after initialization.
DISPATCHED IN PARALLEL, don't attempt to mutate anything outside this instance.
Instancer/InstanceDatacreation/acquisition is safe here.- Specified by:
beginFramein interfaceDynamicInstance
-
updateLight
public void updateLight()Description copied from class:AbstractInstanceCalled after construction and when a light update occurs in the world.
If your model needs it, update light here.- Overrides:
updateLightin classAbstractInstance
-
remove
public void remove()Description copied from class:AbstractInstanceFree any acquired resources.- Specified by:
removein classAbstractInstance
-