Class BatchingEngine
java.lang.Object
com.jozufozu.flywheel.backend.instancing.batching.BatchingEngine
- All Implemented Interfaces:
MaterialManager,Engine,RenderDispatcher
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDebugInfo(List<String> info) voidbeginFrame(net.minecraft.client.Camera info) Maintain the integer origin coordinate to be within a certain distance from the camera in all directions.voiddelete()net.minecraft.core.Vec3ivoidrender(TaskEngine taskEngine, RenderLayerEvent event) Render every model for every material.state(RenderLayer layer, net.minecraft.client.renderer.RenderType state) Get a material group that will render in the given layer with the given state.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.jozufozu.flywheel.api.MaterialManager
cutout, defaultCutout, defaultSolid, defaultTransparent, solid, transparent
-
Constructor Details
-
BatchingEngine
public BatchingEngine()
-
-
Method Details
-
state
Description copied from interface:MaterialManagerGet a material group that will render in the given layer with the given state.- Specified by:
statein interfaceMaterialManager- Parameters:
layer- TheRenderLayeryou want to draw in.state- TheRenderTypeyou need to draw with.- Returns:
- A material group whose children will
-
getOriginCoordinate
public net.minecraft.core.Vec3i getOriginCoordinate()- Specified by:
getOriginCoordinatein interfaceMaterialManager
-
render
Description copied from interface:RenderDispatcherRender every model for every material.- Specified by:
renderin interfaceRenderDispatcherevent- Context for rendering.
-
delete
public void delete()- Specified by:
deletein interfaceRenderDispatcher
-
beginFrame
public void beginFrame(net.minecraft.client.Camera info) Description copied from interface:RenderDispatcherMaintain the integer origin coordinate to be within a certain distance from the camera in all directions.This prevents floating point precision issues at high coordinates.
- Specified by:
beginFramein interfaceRenderDispatcher
-
addDebugInfo
- Specified by:
addDebugInfoin interfaceEngine
-