Package | Description |
---|---|
net.minecraftforge.event | |
net.minecraftforge.event.entity.player | |
net.minecraftforge.fml.common.eventhandler |
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)
Deprecated.
|
static Event.Result |
ForgeEventFactory.canEntitySpawn(EntityLiving entity,
World world,
float x,
float y,
float z,
boolean isSpawner)
Deprecated.
|
static Event.Result |
ForgeEventFactory.canEntitySpawn(EntityLiving entity,
World world,
float x,
float y,
float z,
MobSpawnerBaseLogic spawner) |
Modifier and Type | Field and Description |
---|---|
private Event.Result |
PlayerInteractEvent.RightClickBlock.useBlock |
private Event.Result |
PlayerInteractEvent.LeftClickBlock.useBlock |
private Event.Result |
PlayerInteractEvent.RightClickBlock.useItem |
private Event.Result |
PlayerInteractEvent.LeftClickBlock.useItem |
Modifier and Type | Method and Description |
---|---|
Event.Result |
PlayerInteractEvent.RightClickBlock.getUseBlock() |
Event.Result |
PlayerInteractEvent.LeftClickBlock.getUseBlock() |
Event.Result |
PlayerInteractEvent.RightClickBlock.getUseItem() |
Event.Result |
PlayerInteractEvent.LeftClickBlock.getUseItem() |
Modifier and Type | Method and Description |
---|---|
void |
PlayerInteractEvent.RightClickBlock.setUseBlock(Event.Result triggerBlock)
DENY: Block will never be used.
|
void |
PlayerInteractEvent.LeftClickBlock.setUseBlock(Event.Result triggerBlock) |
void |
PlayerInteractEvent.RightClickBlock.setUseItem(Event.Result triggerItem)
DENY: The item will never be used.
|
void |
PlayerInteractEvent.LeftClickBlock.setUseItem(Event.Result triggerItem) |
Modifier and Type | Field and Description |
---|---|
private Event.Result |
Event.result |
Modifier and Type | Method and Description |
---|---|
Event.Result |
Event.getResult()
Returns the value set as the result of this event
|
static Event.Result |
Event.Result.valueOf(java.lang.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.
|