Enum Class EmptyModelData

java.lang.Object
java.lang.Enum<EmptyModelData>
net.minecraftforge.client.model.data.EmptyModelData
All Implemented Interfaces:
Serializable, Comparable<EmptyModelData>, Constable, IModelData

public enum EmptyModelData extends Enum<EmptyModelData> implements IModelData
  • Enum Constant Details

  • Constructor Details

    • EmptyModelData

      private EmptyModelData()
  • Method Details

    • values

      public static EmptyModelData[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static EmptyModelData valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • hasProperty

      public boolean hasProperty(ModelProperty<?> prop)
      Description copied from interface: IModelData
      Check if this data has a property, even if the value is null. Can be used by code that intends to fill in data for a render pipeline, such as the forge animation system.

      IMPORTANT: IModelData.getData(ModelProperty) can return null even if this method returns true.

      Specified by:
      hasProperty in interface IModelData
      Parameters:
      prop - The property to check for inclusion in this model data
      Returns:
      true if this data has the given property, even if no value is present
    • getData

      public <T> T getData(ModelProperty<T> prop)
      Specified by:
      getData in interface IModelData
    • setData

      public <T> T setData(ModelProperty<T> prop, T data)
      Specified by:
      setData in interface IModelData