Class BlockEntityInstanceManager
java.lang.Object
com.jozufozu.flywheel.backend.instancing.InstanceManager<net.minecraft.world.level.block.entity.BlockEntity>
com.jozufozu.flywheel.backend.instancing.blockentity.BlockEntityInstanceManager
- All Implemented Interfaces:
InstancingEngine.OriginShiftListener
- Direct Known Subclasses:
CrumblingInstanceManager
public class BlockEntityInstanceManager
extends InstanceManager<net.minecraft.world.level.block.entity.BlockEntity>
-
Field Summary
Fields inherited from class com.jozufozu.flywheel.backend.instancing.InstanceManager
dynamicInstances, frame, instances, materialManager, tick, tickableInstances -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancanCreateInstance(net.minecraft.world.level.block.entity.BlockEntity blockEntity) Is the given object currently capable of being instanced?protected booleancanInstance(net.minecraft.world.level.block.entity.BlockEntity obj) Is the given object capable of being instanced at all?protected AbstractInstancecreateRaw(net.minecraft.world.level.block.entity.BlockEntity obj) Methods inherited from class com.jozufozu.flywheel.backend.instancing.InstanceManager
add, addInternal, beginFrame, createInternal, createUpdateLimiter, detachLightListeners, getInstance, getObjectCount, invalidate, onOriginShift, processQueuedAdditions, processQueuedUpdates, queueAdd, queueAddAll, queueUpdate, remove, removeInternal, tick, tickInstance, update, updateInstance
-
Constructor Details
-
BlockEntityInstanceManager
-
-
Method Details
-
canInstance
protected boolean canInstance(net.minecraft.world.level.block.entity.BlockEntity obj) Description copied from class:InstanceManagerIs the given object capable of being instanced at all?- Specified by:
canInstancein classInstanceManager<net.minecraft.world.level.block.entity.BlockEntity>- Returns:
- false if on object cannot be instanced.
-
createRaw
- Specified by:
createRawin classInstanceManager<net.minecraft.world.level.block.entity.BlockEntity>
-
canCreateInstance
protected boolean canCreateInstance(net.minecraft.world.level.block.entity.BlockEntity blockEntity) Description copied from class:InstanceManagerIs the given object currently capable of being instanced?This won't be the case for TEs or entities that are outside of loaded chunks.
- Specified by:
canCreateInstancein classInstanceManager<net.minecraft.world.level.block.entity.BlockEntity>- Returns:
- true if the object is currently capable of being instanced.
-