java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.species.palette.locator.ModelData

public final class ModelData extends Object
  • Field Details

    • MODEL_DATA_CODEC

      public static final com.mojang.serialization.Codec<ModelData> MODEL_DATA_CODEC
  • Constructor Details

  • Method Details

    • withTexture

      public ModelData withTexture(ResourceWithFallback texture)
    • usingFallback

      public boolean usingFallback()
    • getModel

      public ValveStudioModel getModel()
    • model

      public ResourceWithFallback model()
    • texture

      public TextureProvider texture()
    • emissive

      public TextureProvider emissive()
    • normalMap

      public TextureProvider 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

      public List<ModelAttachment> attachments()
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • modelWithTexture

      public static ModelData modelWithTexture(String model, String texture)
      An easy way to create an instance of ModelData with all the default values filled in
      Parameters:
      model - The model path
      texture - 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 of ModelData with all the default values filled in
      Parameters:
      model - The model path
      texture - The texture path
      Returns:
      The model data
    • builder

      public static ModelData.Builder builder()
      Gets an instance of the builder
      Returns:
      The builder