Class ModelUtil

java.lang.Object
com.jozufozu.flywheel.lib.model.ModelUtil

public final class ModelUtil extends Object
  • Field Details

    • VANILLA_RENDERER

      public static final net.minecraft.client.renderer.block.BlockRenderDispatcher VANILLA_RENDERER
      An 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

      public static int computeTotalVertexCount(Iterable<Mesh> meshes)
    • computeBoundingSphere

      public static org.joml.Vector4f computeBoundingSphere(Collection<Model.ConfiguredMesh> meshes)
    • computeBoundingSphere

      public static org.joml.Vector4f computeBoundingSphere(Iterable<Mesh> meshes)
    • computeBoundingSphere

      public static org.joml.Vector4f computeBoundingSphere(VertexList vertexList)