Package com.jozufozu.flywheel.vanilla
Class ChestInstance<T extends net.minecraft.world.level.block.entity.BlockEntity & net.minecraft.world.level.block.entity.LidBlockEntity>
java.lang.Object
com.jozufozu.flywheel.backend.instancing.AbstractInstance
com.jozufozu.flywheel.backend.instancing.blockentity.BlockEntityInstance<T>
com.jozufozu.flywheel.vanilla.ChestInstance<T>
- 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
-
Field Summary
Fields inherited from class com.jozufozu.flywheel.backend.instancing.blockentity.BlockEntityInstance
blockEntity, blockState, instancePos, posFields inherited from class com.jozufozu.flywheel.backend.instancing.AbstractInstance
materialManager, removed, world -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled every frame, and after initialization.static booleanvoidremove()Free any acquired resources.voidCalled after construction and when a light update occurs in the world.Methods inherited from class com.jozufozu.flywheel.backend.instancing.blockentity.BlockEntityInstance
getInstancePosition, getOrientedMaterial, getTransformMaterial, getVolume, getWorldPosition, shouldResetMethods inherited from class com.jozufozu.flywheel.backend.instancing.AbstractInstance
init, isListenerInvalid, onLightUpdate, relight, relight, relight, relight, removeAndMark, 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
onLightPacket
-
Constructor Details
-
ChestInstance
-
-
Method Details
-
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
-
isChristmas
public static boolean isChristmas()
-