Class BlockClusterOutline

java.lang.Object
net.createmod.catnip.utility.outliner.Outline
net.createmod.catnip.utility.outliner.BlockClusterOutline

public class BlockClusterOutline extends Outline
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.createmod.catnip.utility.outliner.Outline

    Outline.OutlineParams
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final com.mojang.math.Vector3f
     
    protected final com.mojang.math.Vector3f
     
    protected final com.mojang.math.Vector3f
     
    protected final com.mojang.math.Vector3f
     
    protected final com.mojang.math.Vector3f
     
    protected final com.mojang.math.Vector3f
     

    Fields inherited from class net.createmod.catnip.utility.outliner.Outline

    colorTemp, diffPosTemp, maxPosTemp, minPosTemp, normalTransformTemp, params, posTransformTemp
  • Constructor Summary

    Constructors
    Constructor
    Description
    BlockClusterOutline(Iterable<net.minecraft.core.BlockPos> positions)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    addPos(float x, float y, float z, com.mojang.math.Vector3f pos0, com.mojang.math.Vector3f pos1, com.mojang.math.Vector3f pos2, com.mojang.math.Vector3f pos3)
     
    protected void
    bufferBlockFace(com.mojang.blaze3d.vertex.PoseStack.Pose pose, com.mojang.blaze3d.vertex.VertexConsumer consumer, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction face, com.mojang.math.Vector4f color, int lightmap)
     
    static void
    loadFaceData(net.minecraft.core.Direction face, com.mojang.math.Vector3f pos0, com.mojang.math.Vector3f pos1, com.mojang.math.Vector3f pos2, com.mojang.math.Vector3f pos3, com.mojang.math.Vector3f normal)
     
    void
    render(com.mojang.blaze3d.vertex.PoseStack ms, SuperRenderTypeBuffer buffer, net.minecraft.world.phys.Vec3 camera, float pt)
     
    protected void
    renderEdges(com.mojang.blaze3d.vertex.PoseStack ms, SuperRenderTypeBuffer buffer, net.minecraft.world.phys.Vec3 camera, float pt, com.mojang.math.Vector4f color, int lightmap, boolean disableNormals)
     
    protected void
    renderFaces(com.mojang.blaze3d.vertex.PoseStack ms, SuperRenderTypeBuffer buffer, net.minecraft.world.phys.Vec3 camera, float pt, com.mojang.math.Vector4f color, int lightmap)
     

    Methods inherited from class net.createmod.catnip.utility.outliner.Outline

    bufferCuboid, bufferCuboidLine, bufferCuboidLine, bufferQuad, bufferQuad, getParams, tick

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • pos0Temp

      protected final com.mojang.math.Vector3f pos0Temp
    • pos1Temp

      protected final com.mojang.math.Vector3f pos1Temp
    • pos2Temp

      protected final com.mojang.math.Vector3f pos2Temp
    • pos3Temp

      protected final com.mojang.math.Vector3f pos3Temp
    • normalTemp

      protected final com.mojang.math.Vector3f normalTemp
    • originTemp

      protected final com.mojang.math.Vector3f originTemp
  • Constructor Details

    • BlockClusterOutline

      public BlockClusterOutline(Iterable<net.minecraft.core.BlockPos> positions)
  • Method Details

    • render

      public void render(com.mojang.blaze3d.vertex.PoseStack ms, SuperRenderTypeBuffer buffer, net.minecraft.world.phys.Vec3 camera, float pt)
      Specified by:
      render in class Outline
    • renderFaces

      protected void renderFaces(com.mojang.blaze3d.vertex.PoseStack ms, SuperRenderTypeBuffer buffer, net.minecraft.world.phys.Vec3 camera, float pt, com.mojang.math.Vector4f color, int lightmap)
    • renderEdges

      protected void renderEdges(com.mojang.blaze3d.vertex.PoseStack ms, SuperRenderTypeBuffer buffer, net.minecraft.world.phys.Vec3 camera, float pt, com.mojang.math.Vector4f color, int lightmap, boolean disableNormals)
    • loadFaceData

      public static void loadFaceData(net.minecraft.core.Direction face, com.mojang.math.Vector3f pos0, com.mojang.math.Vector3f pos1, com.mojang.math.Vector3f pos2, com.mojang.math.Vector3f pos3, com.mojang.math.Vector3f normal)
    • addPos

      public static void addPos(float x, float y, float z, com.mojang.math.Vector3f pos0, com.mojang.math.Vector3f pos1, com.mojang.math.Vector3f pos2, com.mojang.math.Vector3f pos3)
    • bufferBlockFace

      protected void bufferBlockFace(com.mojang.blaze3d.vertex.PoseStack.Pose pose, com.mojang.blaze3d.vertex.VertexConsumer consumer, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction face, com.mojang.math.Vector4f color, int lightmap)