Package com.jozufozu.flywheel.vanilla
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
-
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
ConstructorsConstructorDescriptionShulkerBoxInstance(MaterialManager materialManager, net.minecraft.world.level.block.entity.ShulkerBoxBlockEntity blockEntity) -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled every frame, and after initialization.voidremove()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
-
ShulkerBoxInstance
public ShulkerBoxInstance(MaterialManager materialManager, net.minecraft.world.level.block.entity.ShulkerBoxBlockEntity blockEntity)
-
-
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
-
remove
public void remove()Description copied from class:AbstractInstanceFree any acquired resources.- Specified by:
removein classAbstractInstance
-
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
-