Package net.minecraft.state.property
Class IntProperty
Represents a property that has integer values.
See Properties for example
usages.
- Mappings:
Namespace Name named net/minecraft/state/property/IntPropertyintermediary net/minecraft/class_2758official dwj
-
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 IntImmutableList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanReturns all possible values of this property.intmethod_64218(Integer integer) Returns the name of the given value of this property.static IntPropertyCreates an integer property.Methods inherited from class net.minecraft.state.property.Property
createValue, createValue, getCodec, getName, getType, getValueCodec, hashCode, parse, stream, toString
-
Field Details
-
values
- Mappings:
Namespace Name Mixin selector named valuesLnet/minecraft/state/property/IntProperty;values:Lit/unimi/dsi/fastutil/ints/IntImmutableList;intermediary field_12614Lnet/minecraft/class_2758;field_12614:Lit/unimi/dsi/fastutil/ints/IntImmutableList;official aLdwj;a:Lit/unimi/dsi/fastutil/ints/IntImmutableList;
-
min
private final int min- Mappings:
Namespace Name Mixin selector named minLnet/minecraft/state/property/IntProperty;min:Iintermediary field_37655Lnet/minecraft/class_2758;field_37655:Iofficial bLdwj;b:I
-
max
private final int max- Mappings:
Namespace Name Mixin selector named maxLnet/minecraft/state/property/IntProperty;max:Iintermediary field_37656Lnet/minecraft/class_2758;field_37656:Iofficial cLdwj;c:I
-
-
Constructor Details
-
IntProperty
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/state/property/IntProperty;<init>(Ljava/lang/String;II)Vintermediary <init>Lnet/minecraft/class_2758;<init>(Ljava/lang/String;II)Vofficial <init>Ldwj;<init>(Ljava/lang/String;II)V
-
-
Method Details
-
getValues
Returns all possible values of this property. -
equals
-
computeHashCode
public int computeHashCode()- Overrides:
computeHashCodein classProperty<Integer>- Mappings:
Namespace Name Mixin selector named computeHashCodeLnet/minecraft/state/property/Property;computeHashCode()Iintermediary method_11799Lnet/minecraft/class_2769;method_11799()Iofficial bLdwm;b()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 named ofLnet/minecraft/state/property/IntProperty;of(Ljava/lang/String;II)Lnet/minecraft/state/property/IntProperty;intermediary method_11867Lnet/minecraft/class_2758;method_11867(Ljava/lang/String;II)Lnet/minecraft/class_2758;official aLdwj;a(Ljava/lang/String;II)Ldwj;
-
parse
- Specified by:
parsein classProperty<Integer>- Mappings:
Namespace Name Mixin selector named parseLnet/minecraft/state/property/Property;parse(Ljava/lang/String;)Ljava/util/Optional;intermediary method_11900Lnet/minecraft/class_2769;method_11900(Ljava/lang/String;)Ljava/util/Optional;official bLdwm;b(Ljava/lang/String;)Ljava/util/Optional;
-
name
Description copied from class:PropertyReturns the name of the given value of this property.- Specified by:
namein classProperty<Integer>- Mappings:
Namespace Name Mixin selector named nameLnet/minecraft/state/property/IntProperty;name(Ljava/lang/Integer;)Ljava/lang/String;intermediary method_11868Lnet/minecraft/class_2758;method_11868(Ljava/lang/Integer;)Ljava/lang/String;official aLdwj;a(Ljava/lang/Integer;)Ljava/lang/String;
-
method_64218
- Specified by:
method_64218in classProperty<Integer>- Mappings:
Namespace Name Mixin selector named method_64218Lnet/minecraft/state/property/IntProperty;method_64218(Ljava/lang/Integer;)Iintermediary method_64222Lnet/minecraft/class_2758;method_64222(Ljava/lang/Integer;)Iofficial bLdwj;b(Ljava/lang/Integer;)I
-