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

public class EntityInstanceManager extends InstanceManager<net.minecraft.world.entity.Entity>
  • Constructor Details

    • EntityInstanceManager

      public EntityInstanceManager(MaterialManager materialManager)
  • Method Details

    • canInstance

      protected boolean canInstance(net.minecraft.world.entity.Entity obj)
      Description copied from class: InstanceManager
      Is the given object capable of being instanced at all?
      Specified by:
      canInstance in class InstanceManager<net.minecraft.world.entity.Entity>
      Returns:
      false if on object cannot be instanced.
    • createRaw

      protected AbstractInstance createRaw(net.minecraft.world.entity.Entity obj)
      Specified by:
      createRaw in class InstanceManager<net.minecraft.world.entity.Entity>
    • canCreateInstance

      protected boolean canCreateInstance(net.minecraft.world.entity.Entity entity)
      Description copied from class: InstanceManager
      Is 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:
      canCreateInstance in class InstanceManager<net.minecraft.world.entity.Entity>
      Returns:
      true if the object is currently capable of being instanced.