| Modifier and Type | Method and Description |
|---|---|
BlockBehavior.Result |
BlockBehavior.onBreak(PlayerSession session,
Block block,
ItemInstance withItem) |
BlockBehavior.Result |
SimpleBlockBehavior.onBreak(PlayerSession session,
Block block,
ItemInstance withItem) |
boolean |
BlockBehavior.onPlace(PlayerSession session,
Block against,
ItemInstance withItem) |
boolean |
CropBlockBehavior.onPlace(PlayerSession session,
Block against,
ItemInstance withItem) |
boolean |
SimpleBlockBehavior.onPlace(PlayerSession session,
Block against,
ItemInstance withItem) |
| Constructor and Description |
|---|
PlayerDataComponent(PlayerSession session) |
| Modifier and Type | Method and Description |
|---|---|
PlayerSession |
PlayerInitializationEvent.getPlayerSession() |
| Modifier and Type | Method and Description |
|---|---|
void |
PlayerInitializationEvent.setPlayerSession(PlayerSession playerSession) |
| Modifier and Type | Method and Description |
|---|---|
PlayerSession |
NukkitPlayerInventory.getPlayer() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
NukkitInventory.addItem(ItemInstance item,
PlayerSession session) |
void |
InventoryObserver.onInventorySlotChange(int slot,
ItemInstance oldItem,
ItemInstance newItem,
Inventory inventory,
PlayerSession session)
Called when a single slot is changed within the observed inventory.
|
void |
NukkitInventory.setItem(int slot,
ItemInstance item,
PlayerSession session) |
| Constructor and Description |
|---|
NukkitPlayerInventory(PlayerSession session) |
| Modifier and Type | Method and Description |
|---|---|
void |
NormalTransaction.execute(PlayerSession session) |
void |
InventoryTransaction.execute(PlayerSession session) |
void |
ItemReleaseTransaction.execute(PlayerSession session) |
void |
InventoryMismatchTransaction.execute(PlayerSession session) |
void |
ItemUseTransaction.execute(PlayerSession session) |
void |
ItemUseOnEntityTransaction.execute(PlayerSession session) |
protected boolean |
ComplexTransaction.isHandValid(ItemInstance withItem,
PlayerSession session) |
protected void |
ComplexTransaction.resetBlock(Block block,
PlayerSession session) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
InventoryAction.execute(PlayerSession session) |
void |
CraftInventoryAction.execute(PlayerSession session) |
void |
ContainerInventoryAction.execute(PlayerSession session) |
void |
CreativeInventoryAction.execute(PlayerSession session) |
void |
GlobalInventoryAction.execute(PlayerSession session) |
void |
WorldInteractionInventoryAction.execute(PlayerSession session) |
| Modifier and Type | Method and Description |
|---|---|
List<PlayerSession> |
LevelEntityManager.getPlayers() |
| Modifier and Type | Method and Description |
|---|---|
PlayerSession |
BedrockSession.getPlayerSession() |
PlayerSession |
BedrockSession.initializePlayerSession(NukkitLevel level) |
| Modifier and Type | Method and Description |
|---|---|
void |
PlayerSession.onInventorySlotChange(int slot,
ItemInstance oldItem,
ItemInstance newItem,
Inventory inventory,
PlayerSession session) |
Copyright © 2017–2018 NukkitX. All rights reserved.