Package com.jozufozu.flywheel.vanilla
Class BellInstance
java.lang.Object
com.jozufozu.flywheel.backend.instancing.AbstractInstance
com.jozufozu.flywheel.backend.instancing.blockentity.BlockEntityInstance<net.minecraft.world.level.block.entity.BellBlockEntity>
com.jozufozu.flywheel.vanilla.BellInstance
- All Implemented Interfaces:
DynamicInstance,Instance,LightListener
public class BellInstance
extends BlockEntityInstance<net.minecraft.world.level.block.entity.BellBlockEntity>
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
ConstructorsConstructorDescriptionBellInstance(MaterialManager materialManager, net.minecraft.world.level.block.entity.BellBlockEntity 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
-
BellInstance
public BellInstance(MaterialManager materialManager, net.minecraft.world.level.block.entity.BellBlockEntity 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
-
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
-