类 DirectionProperty
- java.lang.Object
-
- net.minecraft.state.property.Property<T>
-
- net.minecraft.state.property.EnumProperty<Direction>
-
- net.minecraft.state.property.DirectionProperty
-
public class DirectionProperty extends EnumProperty<Direction>
- Mappings:
Namespace Name official cklintermediary net/minecraft/class_2753named net/minecraft/state/property/DirectionProperty
-
-
嵌套类概要
-
从类继承的嵌套类/接口 net.minecraft.state.property.Property
Property.Value<T extends Comparable<T>>
-
-
构造器概要
构造器 限定符 构造器 说明 protectedDirectionProperty(String name, Collection<Direction> values)
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static DirectionPropertyof(String name)static DirectionPropertyof(String name, Collection<Direction> values)Creates a direction property which only supports specific valuesstatic DirectionPropertyof(String name, Predicate<Direction> filter)Creates a direction property.static DirectionPropertyof(String name, Direction[] values)Creates a direction property which only supports specific values-
从类继承的方法 net.minecraft.state.property.EnumProperty
computeHashCode, equals, getValues, name, of, of, of, of, parse
-
从类继承的方法 net.minecraft.state.property.Property
createValue, createValue, getCodec, getName, getType, getValueCodec, hashCode, method_35307, stream, toString
-
-
-
-
构造器详细资料
-
DirectionProperty
protected DirectionProperty(String name, Collection<Direction> values)
- Mappings:
Namespace Name Mixin selector official <init>Lckl;<init>(Ljava/lang/String;Ljava/util/Collection;)Vintermediary <init>Lnet/minecraft/class_2753;<init>(Ljava/lang/String;Ljava/util/Collection;)Vnamed <init>Lnet/minecraft/state/property/DirectionProperty;<init>(Ljava/lang/String;Ljava/util/Collection;)V
-
-
方法详细资料
-
of
public static DirectionProperty of(String name)
- Mappings:
Namespace Name Mixin selector official aLckl;a(Ljava/lang/String;)Lckl;intermediary method_35305Lnet/minecraft/class_2753;method_35305(Ljava/lang/String;)Lnet/minecraft/class_2753;named ofLnet/minecraft/state/property/DirectionProperty;of(Ljava/lang/String;)Lnet/minecraft/state/property/DirectionProperty;
-
of
public static DirectionProperty of(String name, Predicate<Direction> filter)
Creates a direction property.- 参数:
name- the name of this propertyfilter- a filter which specifies if a value is allowed- Mappings:
Namespace Name Mixin selector official aLckl;a(Ljava/lang/String;Ljava/util/function/Predicate;)Lckl;intermediary method_11844Lnet/minecraft/class_2753;method_11844(Ljava/lang/String;Ljava/util/function/Predicate;)Lnet/minecraft/class_2753;named ofLnet/minecraft/state/property/DirectionProperty;of(Ljava/lang/String;Ljava/util/function/Predicate;)Lnet/minecraft/state/property/DirectionProperty;
-
of
public static DirectionProperty of(String name, Direction[] values)
Creates a direction property which only supports specific values- 参数:
name- the name of this propertyvalues- the values this property can have- Mappings:
Namespace Name Mixin selector official aLckl;a(Ljava/lang/String;[Lgg;)Lckl;intermediary method_11845Lnet/minecraft/class_2753;method_11845(Ljava/lang/String;[Lnet/minecraft/class_2350;)Lnet/minecraft/class_2753;named ofLnet/minecraft/state/property/DirectionProperty;of(Ljava/lang/String;[Lnet/minecraft/util/math/Direction;)Lnet/minecraft/state/property/DirectionProperty;
-
of
public static DirectionProperty of(String name, Collection<Direction> values)
Creates a direction property which only supports specific values- 参数:
name- the name of this propertyvalues- the values this property can have- Mappings:
Namespace Name Mixin selector official aLckl;a(Ljava/lang/String;Ljava/util/Collection;)Lckl;intermediary method_11843Lnet/minecraft/class_2753;method_11843(Ljava/lang/String;Ljava/util/Collection;)Lnet/minecraft/class_2753;named ofLnet/minecraft/state/property/DirectionProperty;of(Ljava/lang/String;Ljava/util/Collection;)Lnet/minecraft/state/property/DirectionProperty;
-
-