Class GeoBone
java.lang.Object
team.lodestar.lodestone.systems.model.geo.data.GeoBone
- All Implemented Interfaces:
ICloneable<GeoBone>,IRenderableModelPart<GeoBone>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddCustomPart(IRenderableModelPart<?> part) copy()A copy of the GeoBone with its own copies of the original children and cubes.voidcopyTransformFrom(GeoBone geoBone) getCubes()org.joml.Vector3forg.joml.Vector3forg.joml.Vector3fgetScale()floatgetxRot()floatgetyRot()floatgetzRot()booleanbooleanisHidden()A copy of the GeoBone with its own copies of the original children but the same cubes.voidremoveCustomPart(IRenderableModelPart<?> part) voidrender(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) voidrenderBatchedCustomParts(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.MultiBufferSource.BufferSource bufferSource) voidsetHidden(boolean hidden) voidsetOffset(float x, float y, float z) voidsetPosition(float x, float y, float z) voidsetPosition(org.joml.Vector3f position) voidsetRotation(float xDeg, float yDeg, float zDeg) voidsetScale(float x, float y, float z) voidsetScale(org.joml.Vector3f scale) voidtranslateAndRotate(com.mojang.blaze3d.vertex.PoseStack poseStack) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface team.lodestar.lodestone.systems.model.geo.data.IRenderableModelPart
render
-
Constructor Details
-
GeoBone
-
-
Method Details
-
copyTransformFrom
-
hasChild
-
getChild
-
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
-
getChildren
-
getParent
-
addChild
-
setHidden
public void setHidden(boolean hidden) -
isHidden
public boolean isHidden() -
addCustomPart
-
removeCustomPart
-
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:
renderin interfaceIRenderableModelPart<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
A copy of the GeoBone with its own copies of the original children and cubes.- Specified by:
copyin interfaceICloneable<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.
-