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>
  • Constructor Details

    • BlockEntityInstanceManager

      public BlockEntityInstanceManager(MaterialManager materialManager)
  • Method Details

    • canInstance

      protected boolean canInstance(net.minecraft.world.level.block.entity.BlockEntity 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.level.block.entity.BlockEntity>
      Returns:
      false if on object cannot be instanced.
    • createRaw

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

      protected boolean canCreateInstance(net.minecraft.world.level.block.entity.BlockEntity blockEntity)
      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.level.block.entity.BlockEntity>
      Returns:
      true if the object is currently capable of being instanced.