public static enum EntityUnleashEvent.UnleashReason extends Enum<EntityUnleashEvent.UnleashReason>
| 列挙型定数と説明 |
|---|
DISTANCE
When the entity's leashholder is more than 10 blocks away
|
HOLDER_GONE
When the entity's leashholder has died or logged out, and so is
unleashed
|
PLAYER_UNLEASH
When the entity's leashholder attempts to unleash it
|
UNKNOWN |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
static EntityUnleashEvent.UnleashReason |
valueOf(String name)
指定した名前を持つこの型の列挙型定数を返します。
|
static EntityUnleashEvent.UnleashReason[] |
values()
この列挙型の定数を含む配列を宣言されている順序で返します。
|
public static final EntityUnleashEvent.UnleashReason HOLDER_GONE
public static final EntityUnleashEvent.UnleashReason PLAYER_UNLEASH
public static final EntityUnleashEvent.UnleashReason DISTANCE
public static final EntityUnleashEvent.UnleashReason UNKNOWN
public static EntityUnleashEvent.UnleashReason[] values()
for(EntityUnleashEvent.UnleashReason c: EntityUnleashEvent.UnleashReason.values()) System.out.println(c);
public static EntityUnleashEvent.UnleashReason valueOf(String name)
name - 返される列挙型定数の名前。IllegalArgumentException - この列挙型に、指定した名前の定数がない場合NullPointerException - 引数がnullの場合Copyright © 2016. All rights reserved.