Package net.minecraft.state
Class IntegerProperty
- java.lang.Object
-
- net.minecraft.state.Property<java.lang.Integer>
-
- net.minecraft.state.IntegerProperty
-
public class IntegerProperty extends Property<java.lang.Integer>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraft.state.Property
Property.ValuePair<T extends java.lang.Comparable<T>>
-
-
Field Summary
Fields Modifier and Type Field Description private com.google.common.collect.ImmutableSet<java.lang.Integer>
values
-
Constructor Summary
Constructors Modifier Constructor Description protected
IntegerProperty(java.lang.String p_i45648_1_, int p_i45648_2_, int p_i45648_3_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IntegerProperty
create(java.lang.String p_177719_0_, int p_177719_1_, int p_177719_2_)
boolean
equals(java.lang.Object p_equals_1_)
int
generateHashCode()
java.lang.String
getName(java.lang.Integer p_177702_1_)
java.util.Collection<java.lang.Integer>
getPossibleValues()
java.util.Optional<java.lang.Integer>
getValue(java.lang.String p_185929_1_)
-
Methods inherited from class net.minecraft.state.Property
getAllValues, getName, getValueClass, hashCode, toString, value, value, valueCodec
-
-
-
-
Method Detail
-
getPossibleValues
public java.util.Collection<java.lang.Integer> getPossibleValues()
- Specified by:
getPossibleValues
in classProperty<java.lang.Integer>
-
equals
public boolean equals(java.lang.Object p_equals_1_)
-
generateHashCode
public int generateHashCode()
- Overrides:
generateHashCode
in classProperty<java.lang.Integer>
-
create
public static IntegerProperty create(java.lang.String p_177719_0_, int p_177719_1_, int p_177719_2_)
-
getValue
public java.util.Optional<java.lang.Integer> getValue(java.lang.String p_185929_1_)
-
-