public enum PistonMoveReaction extends Enum<PistonMoveReaction>
| 列挙型定数と説明 |
|---|
BLOCK
Indicates that the block will resist being pushed or pulled.
|
BREAK
Indicates the block is fragile and will break if pushed on.
|
MOVE
Indicates that the block can be pushed or pulled.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
static PistonMoveReaction |
getById(int id)
非推奨です。
Magic value
|
int |
getId()
非推奨です。
Magic value
|
static PistonMoveReaction |
valueOf(String name)
指定した名前を持つこの型の列挙型定数を返します。
|
static PistonMoveReaction[] |
values()
この列挙型の定数を含む配列を宣言されている順序で返します。
|
public static final PistonMoveReaction MOVE
public static final PistonMoveReaction BREAK
public static final PistonMoveReaction BLOCK
public static PistonMoveReaction[] values()
for(PistonMoveReaction c: PistonMoveReaction.values()) System.out.println(c);
public static PistonMoveReaction valueOf(String name)
name - 返される列挙型定数の名前。IllegalArgumentException - この列挙型に、指定した名前の定数がない場合NullPointerException - 引数がnullの場合@Deprecated public int getId()
@Deprecated public static PistonMoveReaction getById(int id)
id - An IDCopyright © 2016. All rights reserved.