Class ModelProperty<T>

java.lang.Object
net.minecraftforge.client.model.data.ModelProperty<T>
All Implemented Interfaces:
Predicate<T>

public class ModelProperty<T> extends Object implements Predicate<T>
A property to be used in ModelData.

May optionally validate incoming values.

See Also:
  • Field Details

    • predicate

      private final Predicate<T> predicate
  • Constructor Details

    • ModelProperty

      public ModelProperty()
    • ModelProperty

      public ModelProperty(Predicate<T> predicate)
  • Method Details

    • test

      public boolean test(T value)
      Specified by:
      test in interface Predicate<T>