Class ModelBuilder.ElementBuilder.RotationBuilder
java.lang.Object
net.minecraftforge.client.model.generators.ModelBuilder.ElementBuilder.RotationBuilder
- Enclosing class:
- ModelBuilder.ElementBuilder
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate floatprivate Direction.Axisprivate org.joml.Vector3fprivate boolean
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionangle(float angle) axis(Direction.Axis axis) (package private) BlockElementRotationbuild()end()origin(float x, float y, float z) rescale(boolean rescale) 
- 
Field Details- 
originprivate org.joml.Vector3f origin
- 
axis
- 
angleprivate float angle
- 
rescaleprivate boolean rescale
 
- 
- 
Constructor Details- 
RotationBuilderpublic RotationBuilder()
 
- 
- 
Method Details- 
origin
- 
axis- Parameters:
- axis- the axis of rotation
- Returns:
- this builder
- Throws:
- NullPointerException- if- axisis- null
 
- 
angle- Parameters:
- angle- the rotation angle
- Returns:
- this builder
- Throws:
- IllegalArgumentException- if- angleis invalid (not one of 0, +/-22.5, +/-45)
 
- 
rescale
- 
buildBlockElementRotation build()
- 
end
 
-