Package com.jozufozu.flywheel.lib.model
Class ModelUtil
java.lang.Object
com.jozufozu.flywheel.lib.model.ModelUtil
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.client.renderer.block.BlockRenderDispatcherAn alternative BlockRenderDispatcher that circumvents the Forge rendering pipeline to ensure consistency. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.joml.Vector4fcomputeBoundingSphere(VertexList vertexList) static org.joml.Vector4fcomputeBoundingSphere(Iterable<Mesh> meshes) static org.joml.Vector4fstatic intcomputeTotalVertexCount(Iterable<Mesh> meshes) static MemoryBlockconvertVanillaBuffer(com.mojang.blaze3d.vertex.BufferBuilder.RenderedBuffer buffer, VertexView vertexView) static @Nullable MaterialgetMaterial(net.minecraft.client.renderer.RenderType chunkRenderType, boolean shaded)
-
Field Details
-
VANILLA_RENDERER
public static final net.minecraft.client.renderer.block.BlockRenderDispatcher VANILLA_RENDERERAn alternative BlockRenderDispatcher that circumvents the Forge rendering pipeline to ensure consistency. Meant to be used for virtual rendering.
-
-
Method Details
-
convertVanillaBuffer
public static MemoryBlock convertVanillaBuffer(com.mojang.blaze3d.vertex.BufferBuilder.RenderedBuffer buffer, VertexView vertexView) -
getMaterial
@Nullable public static @Nullable Material getMaterial(net.minecraft.client.renderer.RenderType chunkRenderType, boolean shaded) -
computeTotalVertexCount
-
computeBoundingSphere
-
computeBoundingSphere
-
computeBoundingSphere
-