Package net.minecraft.state.property
Class IntProperty
Represents a property that has integer values.
See Properties for example
usages.
- Mappings:
Namespace Name official cyuintermediary net/minecraft/class_2758named net/minecraft/state/property/IntProperty
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.state.property.Property
Property.Value<T extends Comparable<T>> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final intprivate final ImmutableSet<Integer> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanReturns all possible values of this property.method_11868(Integer integer) static IntPropertyCreates an integer property.Methods inherited from class net.minecraft.state.property.Property
createValue, createValue, getCodec, getName, getType, getValueCodec, hashCode, name, parse, stream, toString
-
Field Details
-
values
- Mappings:
Namespace Name Mixin selector official aLcyu;a:Lcom/google/common/collect/ImmutableSet;intermediary field_12614Lnet/minecraft/class_2758;field_12614:Lcom/google/common/collect/ImmutableSet;named valuesLnet/minecraft/state/property/IntProperty;values:Lcom/google/common/collect/ImmutableSet;
-
field_37655
private final int field_37655- Mappings:
Namespace Name Mixin selector official bLcyu;b:Iintermediary field_37655Lnet/minecraft/class_2758;field_37655:Inamed field_37655Lnet/minecraft/state/property/IntProperty;field_37655:I
-
field_37656
private final int field_37656- Mappings:
Namespace Name Mixin selector official cLcyu;c:Iintermediary field_37656Lnet/minecraft/class_2758;field_37656:Inamed field_37656Lnet/minecraft/state/property/IntProperty;field_37656:I
-
-
Constructor Details
-
IntProperty
- Mappings:
Namespace Name Mixin selector official <init>Lcyu;<init>(Ljava/lang/String;II)Vintermediary <init>Lnet/minecraft/class_2758;<init>(Ljava/lang/String;II)Vnamed <init>Lnet/minecraft/state/property/IntProperty;<init>(Ljava/lang/String;II)V
-
-
Method Details
-
getValues
Returns all possible values of this property.- Specified by:
getValuesin classProperty<Integer>- Mappings:
Namespace Name Mixin selector official aLcyx;a()Ljava/util/Collection;intermediary method_11898Lnet/minecraft/class_2769;method_11898()Ljava/util/Collection;named getValuesLnet/minecraft/state/property/Property;getValues()Ljava/util/Collection;
-
equals
-
computeHashCode
public int computeHashCode()- Overrides:
computeHashCodein classProperty<Integer>- Mappings:
Namespace Name Mixin selector official bLcyx;b()Iintermediary method_11799Lnet/minecraft/class_2769;method_11799()Inamed computeHashCodeLnet/minecraft/state/property/Property;computeHashCode()I
-
of
Creates an integer property.Note that this method computes all possible values.
- Parameters:
name- the name of the property; see the note on the namemin- the minimum value the property containsmax- the maximum value the property contains- Throws:
IllegalArgumentException- if0 <= min < maxis not satisfied- Mappings:
Namespace Name Mixin selector official aLcyu;a(Ljava/lang/String;II)Lcyu;intermediary method_11867Lnet/minecraft/class_2758;method_11867(Ljava/lang/String;II)Lnet/minecraft/class_2758;named ofLnet/minecraft/state/property/IntProperty;of(Ljava/lang/String;II)Lnet/minecraft/state/property/IntProperty;
-
parse
- Specified by:
parsein classProperty<Integer>- Mappings:
Namespace Name Mixin selector official bLcyx;b(Ljava/lang/String;)Ljava/util/Optional;intermediary method_11900Lnet/minecraft/class_2769;method_11900(Ljava/lang/String;)Ljava/util/Optional;named parseLnet/minecraft/state/property/Property;parse(Ljava/lang/String;)Ljava/util/Optional;
-
method_11868
- Mappings:
Namespace Name Mixin selector official aLcyu;a(Ljava/lang/Integer;)Ljava/lang/String;intermediary method_11868Lnet/minecraft/class_2758;method_11868(Ljava/lang/Integer;)Ljava/lang/String;named method_11868Lnet/minecraft/state/property/IntProperty;method_11868(Ljava/lang/Integer;)Ljava/lang/String;
-