java.lang.Object
team.lodestar.lodestone.modules.rendering.model.geo.data.GeoBone
All Implemented Interfaces:
ICloneable<GeoBone>, IRenderableModelPart<GeoBone>

public class GeoBone extends Object implements IRenderableModelPart<GeoBone>
  • Constructor Details

  • Method Details

    • copyTransformFrom

      public void copyTransformFrom(GeoBone geoBone)
    • hasChild

      public boolean hasChild(String name)
    • getChild

      public GeoBone getChild(String name)
    • setPosition

      public void setPosition(org.joml.Vector3f position)
    • setPosition

      public void setPosition(float x, float y, float z)
    • setRotation

      public void setRotation(float xDeg, float yDeg, float zDeg)
    • setOffset

      public void setOffset(float x, float y, float z)
    • setScale

      public void setScale(org.joml.Vector3f scale)
    • setScale

      public void setScale(float x, float y, float z)
    • getPosition

      public org.joml.Vector3f getPosition()
    • getOffset

      public org.joml.Vector3f getOffset()
    • getxRot

      public float getxRot()
    • getyRot

      public float getyRot()
    • getzRot

      public float getzRot()
    • getScale

      public org.joml.Vector3f getScale()
    • getCubes

      public List<GeoCube> getCubes()
    • getChildren

      public Map<String,GeoBone> getChildren()
    • getParent

      public String getParent()
    • addChild

      public void addChild(String name, GeoBone bone)
    • setHidden

      public void setHidden(boolean hidden)
    • isHidden

      public boolean isHidden()
    • addCustomPart

      public void addCustomPart(IRenderableModelPart<?> part)
    • removeCustomPart

      public void removeCustomPart(IRenderableModelPart<?> part)
    • getCustomParts

      public List<IRenderableModelPart<?>> getCustomParts()
    • render

      public void render(com.mojang.blaze3d.vertex.PoseStack poseStack, com.mojang.blaze3d.vertex.VertexConsumer vertexConsumer, com.mojang.blaze3d.vertex.VertexFormat vertexFormat, com.mojang.blaze3d.vertex.VertexFormat.Mode mode)
      Specified by:
      render in interface IRenderableModelPart<GeoBone>
    • renderBatchedCustomParts

      public void renderBatchedCustomParts(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.MultiBufferSource.BufferSource bufferSource)
    • translateAndRotate

      public void translateAndRotate(com.mojang.blaze3d.vertex.PoseStack poseStack)
    • copy

      public GeoBone copy()
      A copy of the GeoBone with its own copies of the original children and cubes.
      Specified by:
      copy in interface ICloneable<GeoBone>
    • minimalCopy

      public GeoBone minimalCopy()
      A copy of the GeoBone with its own copies of the original children but the same cubes. Used if you want to copy the transforms of a bone hierarchy without duplicating cube data.