Class Property<T extends Comparable<T>>

java.lang.Object
net.minecraft.world.level.block.state.properties.Property<T>
Direct Known Subclasses:
BooleanProperty, EnumProperty, IntegerProperty

public abstract class Property<T extends Comparable<T>> extends Object
  • Field Details

  • Constructor Details

    • Property

      protected Property(String p_61692_, Class<T> p_61693_)
  • Method Details

    • value

      public Property.Value<T> value(T p_61700_)
    • value

      public Property.Value<T> value(StateHolder<?,?> p_61695_)
    • getAllValues

      public Stream<Property.Value<T>> getAllValues()
    • codec

      public com.mojang.serialization.Codec<T> codec()
    • valueCodec

      public com.mojang.serialization.Codec<Property.Value<T>> valueCodec()
    • getName

      public String getName()
    • getValueClass

      public Class<T> getValueClass()
    • getPossibleValues

      public abstract Collection<T> getPossibleValues()
    • getName

      public abstract String getName(T p_61696_)
    • getValue

      public abstract Optional<T> getValue(String p_61701_)
    • toString

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

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

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • generateHashCode

      public int generateHashCode()
    • parseValue

      public <U, S extends StateHolder<?, S>> com.mojang.serialization.DataResult<S> parseValue(com.mojang.serialization.DynamicOps<U> p_156032_, S p_156033_, U p_156034_)