Class InstancedRenderDispatcher

java.lang.Object
com.jozufozu.flywheel.backend.instancing.InstancedRenderDispatcher

public class InstancedRenderDispatcher extends Object
  • Constructor Details

    • InstancedRenderDispatcher

      public InstancedRenderDispatcher()
  • Method Details

    • enqueueUpdate

      public static void enqueueUpdate(net.minecraft.world.level.block.entity.BlockEntity blockEntity)
      Call this when you want to manually run AbstractInstance.update().
      Parameters:
      blockEntity - The block entity whose instance you want to update.
    • enqueueUpdate

      public static void enqueueUpdate(net.minecraft.world.entity.Entity entity)
      Call this when you want to manually run AbstractInstance.update().
      Parameters:
      entity - The entity whose instance you want to update.
    • getBlockEntities

      public static InstanceManager<net.minecraft.world.level.block.entity.BlockEntity> getBlockEntities(net.minecraft.world.level.LevelAccessor world)
    • getEntities

      public static InstanceManager<net.minecraft.world.entity.Entity> getEntities(net.minecraft.world.level.LevelAccessor world)
    • getInstanceWorld

      public static InstanceWorld getInstanceWorld(net.minecraft.world.level.LevelAccessor world)
      Get or create the InstanceWorld for the given world.
      Throws:
      NullPointerException - if the backend is off
    • tick

      public static void tick(net.minecraftforge.event.TickEvent.ClientTickEvent event)
    • onBeginFrame

      public static void onBeginFrame(BeginFrameEvent event)
    • renderLayer

      public static void renderLayer(RenderLayerEvent event)
    • onReloadRenderers

      public static void onReloadRenderers(ReloadRenderersEvent event)
    • resetInstanceWorld

      public static void resetInstanceWorld(net.minecraft.client.multiplayer.ClientLevel world)
    • getDebugString

      public static void getDebugString(List<String> debug)