枚举 PistonBehavior
- java.lang.Object
-
- java.lang.Enum<PistonBehavior>
-
- net.minecraft.block.piston.PistonBehavior
-
- 所有已实现的接口:
Serializable,Comparable<PistonBehavior>
public enum PistonBehavior extends Enum<PistonBehavior>
- Mappings:
Namespace Name official ddyintermediary net/minecraft/class_3619named net/minecraft/block/piston/PistonBehavior
-
-
构造器概要
构造器 限定符 构造器 说明 privatePistonBehavior()
-
-
-
枚举常量详细资料
-
NORMAL
public static final PistonBehavior NORMAL
- Mappings:
Namespace Name Mixin selector official aLddy;a:Lddy;intermediary field_15974Lnet/minecraft/class_3619;field_15974:Lnet/minecraft/class_3619;named NORMALLnet/minecraft/block/piston/PistonBehavior;NORMAL:Lnet/minecraft/block/piston/PistonBehavior;
-
DESTROY
public static final PistonBehavior DESTROY
- Mappings:
Namespace Name Mixin selector official bLddy;b:Lddy;intermediary field_15971Lnet/minecraft/class_3619;field_15971:Lnet/minecraft/class_3619;named DESTROYLnet/minecraft/block/piston/PistonBehavior;DESTROY:Lnet/minecraft/block/piston/PistonBehavior;
-
BLOCK
public static final PistonBehavior BLOCK
- Mappings:
Namespace Name Mixin selector official cLddy;c:Lddy;intermediary field_15972Lnet/minecraft/class_3619;field_15972:Lnet/minecraft/class_3619;named BLOCKLnet/minecraft/block/piston/PistonBehavior;BLOCK:Lnet/minecraft/block/piston/PistonBehavior;
-
IGNORE
public static final PistonBehavior IGNORE
- Mappings:
Namespace Name Mixin selector official dLddy;d:Lddy;intermediary field_15975Lnet/minecraft/class_3619;field_15975:Lnet/minecraft/class_3619;named IGNORELnet/minecraft/block/piston/PistonBehavior;IGNORE:Lnet/minecraft/block/piston/PistonBehavior;
-
PUSH_ONLY
public static final PistonBehavior PUSH_ONLY
- Mappings:
Namespace Name Mixin selector official eLddy;e:Lddy;intermediary field_15970Lnet/minecraft/class_3619;field_15970:Lnet/minecraft/class_3619;named PUSH_ONLYLnet/minecraft/block/piston/PistonBehavior;PUSH_ONLY:Lnet/minecraft/block/piston/PistonBehavior;
-
-
方法详细资料
-
values
public static PistonBehavior[] values()
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。该方法可用于迭代 常量, 如下所示:for (PistonBehavior c : PistonBehavior.values()) System.out.println(c);
- 返回:
- 按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
-
valueOf
public static PistonBehavior valueOf(String name)
返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)- 参数:
name- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
IllegalArgumentException- 如果该枚举类型没有带有指定名称的常量NullPointerException- 如果参数为空值
-
-