Class EntityInstanceManager
java.lang.Object
com.jozufozu.flywheel.backend.instancing.InstanceManager<net.minecraft.world.entity.Entity>
com.jozufozu.flywheel.backend.instancing.entity.EntityInstanceManager
- All Implemented Interfaces:
InstancingEngine.OriginShiftListener
-
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.entity.Entity entity) Is the given object currently capable of being instanced?protected booleancanInstance(net.minecraft.world.entity.Entity obj) Is the given object capable of being instanced at all?protected AbstractInstancecreateRaw(net.minecraft.world.entity.Entity 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
-
EntityInstanceManager
-
-
Method Details
-
canInstance
protected boolean canInstance(net.minecraft.world.entity.Entity obj) Description copied from class:InstanceManagerIs the given object capable of being instanced at all?- Specified by:
canInstancein classInstanceManager<net.minecraft.world.entity.Entity>- Returns:
- false if on object cannot be instanced.
-
createRaw
- Specified by:
createRawin classInstanceManager<net.minecraft.world.entity.Entity>
-
canCreateInstance
protected boolean canCreateInstance(net.minecraft.world.entity.Entity entity) 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.entity.Entity>- Returns:
- true if the object is currently capable of being instanced.
-