Package | Description |
---|---|
net.minecraftforge.event | |
net.minecraftforge.event.entity.player |
Modifier and Type | Method and Description |
---|---|
static Event.Result |
ForgeEventFactory.canEntityDespawn(EntityLiving entity) |
static Event.Result |
ForgeEventFactory.canEntitySpawn(EntityLiving entity,
World world,
float x,
float y,
float z) |
Event.Result |
Event.getResult()
Returns the value set as the result of this event
|
static Event.Result |
Event.Result.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Event.Result[] |
Event.Result.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
void |
Event.setResult(Event.Result value)
Sets the result value for this event, not all events can have a result set, and any attempt to
set a result for a event that isn't expecting it will result in a IllegalArgumentException.
|
Modifier and Type | Field and Description |
---|---|
Event.Result |
PlayerInteractEvent.useBlock |
Event.Result |
PlayerInteractEvent.useItem |