Class InstancedRenderDispatcher
java.lang.Object
com.jozufozu.flywheel.backend.instancing.InstancedRenderDispatcher
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidenqueueUpdate(net.minecraft.world.entity.Entity entity) Call this when you want to manually runAbstractInstance.update().static voidenqueueUpdate(net.minecraft.world.level.block.entity.BlockEntity blockEntity) Call this when you want to manually runAbstractInstance.update().static InstanceManager<net.minecraft.world.level.block.entity.BlockEntity>getBlockEntities(net.minecraft.world.level.LevelAccessor world) static voidgetDebugString(List<String> debug) static InstanceManager<net.minecraft.world.entity.Entity>getEntities(net.minecraft.world.level.LevelAccessor world) static InstanceWorldgetInstanceWorld(net.minecraft.world.level.LevelAccessor world) Get or create theInstanceWorldfor the given world.static voidonBeginFrame(BeginFrameEvent event) static voidstatic voidrenderLayer(RenderLayerEvent event) static voidresetInstanceWorld(net.minecraft.client.multiplayer.ClientLevel world) static voidtick(net.minecraftforge.event.TickEvent.ClientTickEvent event)
-
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 runAbstractInstance.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 runAbstractInstance.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
Get or create theInstanceWorldfor the given world.- Throws:
NullPointerException- if the backend is off
-
tick
public static void tick(net.minecraftforge.event.TickEvent.ClientTickEvent event) -
onBeginFrame
-
renderLayer
-
onReloadRenderers
-
resetInstanceWorld
public static void resetInstanceWorld(net.minecraft.client.multiplayer.ClientLevel world) -
getDebugString
-