Class ModelData
java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.species.palette.locator.ModelData
- 
Nested Class Summary
Nested Classes - 
Field Summary
Fields - 
Constructor Summary
ConstructorsConstructorDescriptionModelData(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 TypeMethodDescriptionfloatstatic ModelData.Builderbuilder()Gets an instance of the builderemissive()booleangetModel()inthashCode()model()static ModelDatamodelWithTexture(String model, String texture) An easy way to create an instance ofModelDatawith all the default values filled instatic ModelDatamodelWithTexture(net.minecraft.resources.ResourceLocation model, net.minecraft.resources.ResourceLocation texture) An easy way to create an instance ofModelDatawith all the default values filled infloatorg.joml.Vector3foffsets()org.joml.Vector3forg.joml.Vector3fscale()texture()floattoString()booleanwithTexture(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 ofModelDatawith 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 ofModelDatawith 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
 
 
 -