Package net.minecraft.state.property
Class IntProperty
Represents a property that has integer values.
 
See Properties for example
 usages.
- Mappings:
- Namespace - Name - official - ddb- intermediary - net/minecraft/class_2758- named - net/minecraft/state/property/IntProperty
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.state.property.PropertyProperty.Value<T extends Comparable<T>>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final intprivate final intprivate final ImmutableSet<Integer>
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintbooleanReturns all possible values of this property.Returns the name of the given value of this property.static IntPropertyCreates an integer property.Methods inherited from class net.minecraft.state.property.PropertycreateValue, createValue, getCodec, getName, getType, getValueCodec, hashCode, parse, stream, toString
- 
Field Details- 
values- Mappings:
- Namespace - Name - Mixin selector - official - a- Lddb;a:Lcom/google/common/collect/ImmutableSet;- intermediary - field_12614- Lnet/minecraft/class_2758;field_12614:Lcom/google/common/collect/ImmutableSet;- named - values- Lnet/minecraft/state/property/IntProperty;values:Lcom/google/common/collect/ImmutableSet;
 
- 
minprivate final int min- Mappings:
- Namespace - Name - Mixin selector - official - b- Lddb;b:I- intermediary - field_37655- Lnet/minecraft/class_2758;field_37655:I- named - min- Lnet/minecraft/state/property/IntProperty;min:I
 
- 
maxprivate final int max- Mappings:
- Namespace - Name - Mixin selector - official - c- Lddb;c:I- intermediary - field_37656- Lnet/minecraft/class_2758;field_37656:I- named - max- Lnet/minecraft/state/property/IntProperty;max:I
 
 
- 
- 
Constructor Details- 
IntProperty- Mappings:
- Namespace - Name - Mixin selector - official - <init>- Lddb;<init>(Ljava/lang/String;II)V- intermediary - <init>- Lnet/minecraft/class_2758;<init>(Ljava/lang/String;II)V- named - <init>- Lnet/minecraft/state/property/IntProperty;<init>(Ljava/lang/String;II)V
 
 
- 
- 
Method Details- 
getValuesReturns all possible values of this property.- Specified by:
- getValuesin class- Property<Integer>
- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldde;a()Ljava/util/Collection;- intermediary - method_11898- Lnet/minecraft/class_2769;method_11898()Ljava/util/Collection;- named - getValues- Lnet/minecraft/state/property/Property;getValues()Ljava/util/Collection;
 
- 
equals
- 
computeHashCodepublic int computeHashCode()- Overrides:
- computeHashCodein class- Property<Integer>
- Mappings:
- Namespace - Name - Mixin selector - official - b- Ldde;b()I- intermediary - method_11799- Lnet/minecraft/class_2769;method_11799()I- named - computeHashCode- Lnet/minecraft/state/property/Property;computeHashCode()I
 
- 
ofCreates an integer property.Note that this method computes all possible values. - Parameters:
- name- the name of the property; see the note on the name
- min- the minimum value the property contains
- max- the maximum value the property contains
- Throws:
- IllegalArgumentException- if- 0 <= min < maxis not satisfied
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lddb;a(Ljava/lang/String;II)Lddb;- intermediary - method_11867- Lnet/minecraft/class_2758;method_11867(Ljava/lang/String;II)Lnet/minecraft/class_2758;- named - of- Lnet/minecraft/state/property/IntProperty;of(Ljava/lang/String;II)Lnet/minecraft/state/property/IntProperty;
 
- 
parse- Specified by:
- parsein class- Property<Integer>
- Mappings:
- Namespace - Name - Mixin selector - official - b- Ldde;b(Ljava/lang/String;)Ljava/util/Optional;- intermediary - method_11900- Lnet/minecraft/class_2769;method_11900(Ljava/lang/String;)Ljava/util/Optional;- named - parse- Lnet/minecraft/state/property/Property;parse(Ljava/lang/String;)Ljava/util/Optional;
 
- 
nameDescription copied from class:PropertyReturns the name of the given value of this property.- Specified by:
- namein class- Property<Integer>
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lddb;a(Ljava/lang/Integer;)Ljava/lang/String;- intermediary - method_11868- Lnet/minecraft/class_2758;method_11868(Ljava/lang/Integer;)Ljava/lang/String;- named - name- Lnet/minecraft/state/property/IntProperty;name(Ljava/lang/Integer;)Ljava/lang/String;
 
 
-