Class ModelData
java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.species.palette.locator.ModelData
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
ConstructorDescriptionModelData
(ResourceWithFallback model, TextureProvider texture, TextureProvider emissive, TextureProvider normalMap, org.joml.Vector3f scale, org.joml.Vector3f rotateAngle, float movementThreshold, float animationIncrement, org.joml.Vector3f offsets, float textureTransparency, List<ModelAttachment> attachments) -
Method Summary
Modifier and TypeMethodDescriptionfloat
static ModelData.Builder
builder()
Gets an instance of the builderemissive()
boolean
getModel()
int
hashCode()
model()
static ModelData
modelWithTexture
(String model, String texture) An easy way to create an instance ofModelData
with all the default values filled instatic ModelData
modelWithTexture
(net.minecraft.resources.ResourceLocation model, net.minecraft.resources.ResourceLocation texture) An easy way to create an instance ofModelData
with all the default values filled infloat
org.joml.Vector3f
offsets()
org.joml.Vector3f
org.joml.Vector3f
scale()
texture()
float
toString()
boolean
withTexture
(ResourceWithFallback texture)
-
Field Details
-
MODEL_DATA_CODEC
-
-
Constructor Details
-
ModelData
public ModelData(ResourceWithFallback model, TextureProvider texture, TextureProvider emissive, TextureProvider normalMap, org.joml.Vector3f scale, org.joml.Vector3f rotateAngle, float movementThreshold, float animationIncrement, org.joml.Vector3f offsets, float textureTransparency, List<ModelAttachment> attachments)
-
-
Method Details
-
withTexture
-
usingFallback
public boolean usingFallback() -
getModel
-
model
-
texture
-
emissive
-
normalMap
-
scale
public org.joml.Vector3f scale() -
rotateAngle
public org.joml.Vector3f rotateAngle() -
movementThreshold
public float movementThreshold() -
animationIncrement
public float animationIncrement() -
offsets
public org.joml.Vector3f offsets() -
textureTransparency
public float textureTransparency() -
attachments
-
equals
-
hashCode
public int hashCode() -
toString
-
modelWithTexture
An easy way to create an instance ofModelData
with all the default values filled in- Parameters:
model
- The model pathtexture
- The texture path- Returns:
- The model data
-
modelWithTexture
public static ModelData modelWithTexture(net.minecraft.resources.ResourceLocation model, net.minecraft.resources.ResourceLocation texture) An easy way to create an instance ofModelData
with all the default values filled in- Parameters:
model
- The model pathtexture
- The texture path- Returns:
- The model data
-
builder
Gets an instance of the builder- Returns:
- The builder
-