public class BagItemEvent extends BattleEvent
Modifier and Type | Class and Description |
---|---|
static class |
BagItemEvent.CollectItems
The event relating to when the server determines what items the server has in their inventory to then return
to the client, so that they can be displayed on the screen during that turn.
|
static class |
BagItemEvent.Identifiers |
static class |
BagItemEvent.SelectItem
This event is fired when the client attempts to use an item from their bag, and it is subequently removed from their
inventory and then given to the battle controller.
|
battleController
Constructor and Description |
---|
BagItemEvent(BattleController battleController,
java.lang.String identifier,
net.minecraft.entity.player.ServerPlayerEntity player) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getIdentifier() |
net.minecraft.entity.player.ServerPlayerEntity |
getPlayer() |
boolean |
isIdentifier(java.lang.String identifier) |
boolean |
isNormalBattle() |
getBattleController
public BagItemEvent(BattleController battleController, java.lang.String identifier, net.minecraft.entity.player.ServerPlayerEntity player)