类 IntProperty
- java.lang.Object
-
- net.minecraft.state.property.Property<Integer>
-
- net.minecraft.state.property.IntProperty
-
-
嵌套类概要
-
从类继承的嵌套类/接口 net.minecraft.state.property.Property
Property.Value<T extends Comparable<T>>
-
-
字段概要
字段 修饰符和类型 字段 说明 private ImmutableSet<Integer>values
-
构造器概要
构造器 限定符 构造器 说明 protectedIntProperty(String name, int min, int max)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 intcomputeHashCode()booleanequals(Object o)Collection<Integer>getValues()Returns all possible values the property can take.Stringname(Integer integer)static IntPropertyof(String name, int min, int max)Creates an integer property.Optional<Integer>parse(String name)-
从类继承的方法 net.minecraft.state.property.Property
createValue, createValue, getCodec, getName, getType, getValueCodec, hashCode, method_35307, stream, toString
-
-
-
-
字段详细资料
-
values
private final ImmutableSet<Integer> values
- Mappings:
Namespace Name Mixin selector official aLckr;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;
-
-
构造器详细资料
-
IntProperty
protected IntProperty(String name, int min, int max)
- Mappings:
Namespace Name Mixin selector official <init>Lckr;<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
-
-
方法详细资料
-
getValues
public Collection<Integer> getValues()
Returns all possible values the property can take.
-
equals
public boolean equals(Object o)
-
computeHashCode
public int computeHashCode()
- 覆盖:
computeHashCode在类中Property<Integer>- Mappings:
Namespace Name Mixin selector official bLcku;b()Iintermediary method_11799Lnet/minecraft/class_2769;method_11799()Inamed computeHashCodeLnet/minecraft/state/property/Property;computeHashCode()I
-
of
public static IntProperty of(String name, int min, int max)
Creates an integer property.minmust be non-negative andmaxmust be greater thanmin.Note that this method takes O(
max-min) time as it computes all possible values during instantiation.- 参数:
name- the name of the propertymin- the minimum value the property can takemax- the maximum value the property can take- Mappings:
Namespace Name Mixin selector official aLckr;a(Ljava/lang/String;II)Lckr;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
public Optional<Integer> parse(String name)
- 指定者:
parse在类中Property<Integer>- Mappings:
Namespace Name Mixin selector official bLcku;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;
-
name
public String name(Integer integer)
- 指定者:
name在类中Property<Integer>- Mappings:
Namespace Name Mixin selector official aLckr;a(Ljava/lang/Integer;)Ljava/lang/String;intermediary method_11868Lnet/minecraft/class_2758;method_11868(Ljava/lang/Integer;)Ljava/lang/String;named nameLnet/minecraft/state/property/IntProperty;name(Ljava/lang/Integer;)Ljava/lang/String;
-
-