| Modifier and Type | Method and Description |
|---|---|
CloudPlayer |
CloudServer.getPlayerExact(String name) |
| Modifier and Type | Method and Description |
|---|---|
Map<UUID,CloudPlayer> |
CloudServer.getOnlinePlayers() |
| Modifier and Type | Method and Description |
|---|---|
void |
Achievement.broadcast(CloudPlayer player) |
static boolean |
Achievement.broadcast(CloudPlayer player,
String achievementId) |
static void |
CloudServer.broadcastPacket(CloudPlayer[] players,
com.nukkitx.protocol.bedrock.BedrockPacket packet) |
static void |
CloudServer.broadcastPackets(CloudPlayer[] players,
com.nukkitx.protocol.bedrock.BedrockPacket[] packets) |
CloudAdventureSettings |
CloudAdventureSettings.clone(CloudPlayer newPlayer) |
void |
CloudServer.removePlayerListData(UUID uuid,
CloudPlayer[] players) |
void |
CloudServer.sendFullPlayerListData(CloudPlayer player) |
void |
CloudServer.updatePlayerListData(UUID uuid,
long entityId,
String name,
com.nukkitx.protocol.bedrock.data.skin.SerializedSkin skin,
CloudPlayer[] players) |
void |
CloudServer.updatePlayerListData(UUID uuid,
long entityId,
String name,
com.nukkitx.protocol.bedrock.data.skin.SerializedSkin skin,
String xboxUserId,
CloudPlayer[] players) |
| Modifier and Type | Method and Description |
|---|---|
static void |
CloudServer.broadcastPacket(Set<CloudPlayer> players,
com.nukkitx.protocol.bedrock.BedrockPacket packet) |
void |
CloudServer.removePlayerListData(UUID uuid,
Collection<CloudPlayer> players) |
void |
CloudServer.updatePlayerListData(UUID uuid,
long entityId,
String name,
com.nukkitx.protocol.bedrock.data.skin.SerializedSkin skin,
String xboxUserId,
Collection<CloudPlayer> players) |
| Constructor and Description |
|---|
CloudAdventureSettings(CloudPlayer player) |
CloudAdventureSettings(CloudPlayer player,
Map<org.cloudburstmc.api.player.AdventureSetting,Boolean> values) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
BlockBehaviorCauldron.replaceBucket(org.cloudburstmc.api.item.ItemStack oldBucket,
CloudPlayer player,
org.cloudburstmc.api.item.ItemStack newBucket) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
BaseBlockEntity.updateFromClient(com.nukkitx.nbt.NbtMap tag,
CloudPlayer player) |
boolean |
BeaconBlockEntity.updateNbtMap(com.nukkitx.nbt.NbtMap nbt,
CloudPlayer player) |
protected boolean |
BaseBlockEntity.updateNbtMap(com.nukkitx.nbt.NbtMap nbt,
CloudPlayer player)
Called when a player updates a block entity's NBT data
for example when writing on a sign.
|
boolean |
SignBlockEntity.updateNbtMap(com.nukkitx.nbt.NbtMap tag,
CloudPlayer player) |
| Modifier and Type | Method and Description |
|---|---|
com.nukkitx.protocol.bedrock.data.command.CommandData |
Command.toNetwork(CloudPlayer player)
Generates the
CommandData used
in AvailableCommandsPacket which
sends the Command data to a client. |
| Modifier and Type | Method and Description |
|---|---|
void |
CraftingManager.sendRecipesTo(CloudPlayer player) |
| Modifier and Type | Field and Description |
|---|---|
protected Set<CloudPlayer> |
BaseEntity.hasSpawned |
| Modifier and Type | Method and Description |
|---|---|
Set<CloudPlayer> |
BaseEntity.getViewers() |
| Modifier and Type | Method and Description |
|---|---|
void |
UnknownEntity.despawnFrom(CloudPlayer player) |
void |
BaseEntity.despawnFrom(CloudPlayer player) |
void |
BaseEntity.sendData(CloudPlayer player) |
void |
BaseEntity.sendData(CloudPlayer player,
com.nukkitx.protocol.bedrock.data.entity.EntityData... data) |
void |
BaseEntity.sendFlags(CloudPlayer player) |
void |
BaseEntity.sendPotionEffects(CloudPlayer player) |
void |
UnknownEntity.spawnTo(CloudPlayer player) |
void |
BaseEntity.spawnTo(CloudPlayer player) |
| Modifier and Type | Field and Description |
|---|---|
CloudPlayer |
EntityExperienceOrb.closestPlayer |
| Modifier and Type | Field and Description |
|---|---|
protected List<Consumer<CloudPlayer>> |
Form.FormBuilder.closeListeners |
protected List<Consumer<CloudPlayer>> |
Form.FormBuilder.errorListeners |
protected List<BiConsumer<CloudPlayer,R>> |
Form.FormBuilder.listeners |
| Modifier and Type | Method and Description |
|---|---|
void |
Form.close(CloudPlayer p) |
void |
Form.error(CloudPlayer p) |
abstract void |
Form.handleResponse(CloudPlayer p,
com.fasterxml.jackson.databind.JsonNode node) |
void |
ModalForm.handleResponse(CloudPlayer p,
com.fasterxml.jackson.databind.JsonNode node) |
void |
SimpleForm.handleResponse(CloudPlayer p,
com.fasterxml.jackson.databind.JsonNode node) |
void |
CustomForm.handleResponse(CloudPlayer p,
com.fasterxml.jackson.databind.JsonNode node) |
void |
Form.submit(CloudPlayer p,
R response) |
| Modifier and Type | Method and Description |
|---|---|
SimpleForm.SimpleFormBuilder |
SimpleForm.SimpleFormBuilder.button(String text,
Consumer<CloudPlayer> action)
Adda button with on click callback
|
SimpleForm.SimpleFormBuilder |
SimpleForm.SimpleFormBuilder.button(String text,
ImageType imageType,
String imageData,
Consumer<CloudPlayer> action)
Add a button with image and on click callback
|
T |
Form.FormBuilder.onClose(Consumer<CloudPlayer> listener)
Called when the form is closed
|
T |
Form.FormBuilder.onError(Consumer<CloudPlayer> listener)
Called when an error occurs during the response processing
That could be caused either by a plugin or wrong response (which shouldn't occur in case of vanilla client)
|
T |
Form.FormBuilder.onSubmit(BiConsumer<CloudPlayer,R> listener)
Called when the form is successfully submitted
|
| Modifier and Type | Field and Description |
|---|---|
protected Set<CloudPlayer> |
BaseInventory.viewers |
| Modifier and Type | Method and Description |
|---|---|
CloudPlayer |
CloudCraftingGrid.getHolder() |
CloudPlayer |
CloudBeaconInventory.getHolder() |
CloudPlayer |
PlayerCursorInventory.getHolder()
This override is here for documentation and code completion purposes only.
|
CloudPlayer |
CloudAnvilInventory.getHolder() |
CloudPlayer |
CloudEnderChestInventory.getHolder() |
CloudPlayer |
CloudEnchantInventory.getHolder() |
CloudPlayer |
CloudPlayerInventory.getHolder() |
| Modifier and Type | Method and Description |
|---|---|
Set<CloudPlayer> |
BaseInventory.getViewers() |
| Modifier and Type | Method and Description |
|---|---|
void |
CloudCreatureInventory.sendArmorContents(CloudPlayer player) |
void |
CloudCreatureInventory.sendArmorContents(CloudPlayer[] players) |
void |
CloudCreatureInventory.sendArmorSlot(int index,
CloudPlayer player) |
void |
CloudCreatureInventory.sendArmorSlot(int index,
CloudPlayer[] players) |
void |
CloudCreatureInventory.sendHeldItem(CloudPlayer... players) |
void |
CloudCreatureInventory.sendOffHandContents(CloudPlayer player) |
void |
CloudCreatureInventory.sendOffHandContents(CloudPlayer[] players) |
void |
CloudCreatureInventory.sendOffHandSlot(CloudPlayer player) |
void |
CloudCreatureInventory.sendOffHandSlot(CloudPlayer[] players) |
| Modifier and Type | Method and Description |
|---|---|
void |
CloudCreatureInventory.sendArmorContents(Collection<CloudPlayer> players) |
void |
CloudCreatureInventory.sendArmorSlot(int index,
Collection<CloudPlayer> players) |
void |
CloudCreatureInventory.sendHeldItem(Collection<CloudPlayer> players) |
void |
CloudCreatureInventory.sendOffHandContents(Collection<CloudPlayer> players) |
void |
CloudCreatureInventory.sendOffHandSlot(Collection<CloudPlayer> players) |
| Constructor and Description |
|---|
CloudAnvilInventory(CloudPlayer player) |
CloudBeaconInventory(CloudPlayer player) |
CloudCraftingGrid(CloudPlayer holder) |
CloudEnchantInventory(CloudPlayer player,
org.cloudburstmc.api.blockentity.EnchantingTable table) |
CloudPlayerInventory(CloudPlayer player) |
PlayerCursorInventory(CloudPlayer player) |
| Modifier and Type | Field and Description |
|---|---|
protected CloudPlayer |
InventoryTransaction.source |
| Modifier and Type | Method and Description |
|---|---|
CloudPlayer |
InventoryTransaction.getSource() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
InventoryTransaction.init(CloudPlayer source,
List<InventoryAction> actions) |
| Constructor and Description |
|---|
CraftingTransaction(CloudPlayer source,
List<InventoryAction> actions) |
InventoryTransaction(CloudPlayer source,
List<InventoryAction> actions) |
InventoryTransaction(CloudPlayer source,
List<InventoryAction> actions,
boolean init) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
CraftingTransferMaterialAction.execute(CloudPlayer source) |
boolean |
DropItemAction.execute(CloudPlayer source)
Drops the target item in front of the player.
|
boolean |
CraftingTakeResultAction.execute(CloudPlayer source) |
boolean |
SlotChangeAction.execute(CloudPlayer source)
Sets the item into the target inventory.
|
abstract boolean |
InventoryAction.execute(CloudPlayer source)
Performs actions needed to complete the inventory-action server-side.
|
boolean |
CreativeInventoryAction.execute(CloudPlayer source)
No need to do anything extra here: this type just provides a place for items to disappear or appear from.
|
boolean |
CraftingTransferMaterialAction.isValid(CloudPlayer source) |
boolean |
DropItemAction.isValid(CloudPlayer source)
Verifies that the source item of a drop-item action must be air.
|
boolean |
CraftingTakeResultAction.isValid(CloudPlayer source) |
boolean |
SlotChangeAction.isValid(CloudPlayer source)
Checks if the item in the inventory at the specified inventorySlot is the same as this action's source item.
|
abstract boolean |
InventoryAction.isValid(CloudPlayer source)
Returns whether this action is currently valid.
|
boolean |
CreativeInventoryAction.isValid(CloudPlayer source)
Checks that the player is in creative, and (if creating an item) that the item exists in the creative inventory.
|
void |
CraftingTransferMaterialAction.onExecuteFail(CloudPlayer source) |
void |
DropItemAction.onExecuteFail(CloudPlayer source) |
void |
CraftingTakeResultAction.onExecuteFail(CloudPlayer source) |
void |
SlotChangeAction.onExecuteFail(CloudPlayer source)
Sends the original inventorySlot contents to the source player to revert the action.
|
abstract void |
InventoryAction.onExecuteFail(CloudPlayer source)
Performs additional actions when this inventory-action did not complete successfully.
|
void |
CreativeInventoryAction.onExecuteFail(CloudPlayer source) |
void |
CraftingTransferMaterialAction.onExecuteSuccess(CloudPlayer $source) |
void |
DropItemAction.onExecuteSuccess(CloudPlayer source) |
void |
CraftingTakeResultAction.onExecuteSuccess(CloudPlayer $source) |
void |
SlotChangeAction.onExecuteSuccess(CloudPlayer source)
Sends inventorySlot changes to other viewers of the inventory.
|
abstract void |
InventoryAction.onExecuteSuccess(CloudPlayer source)
Performs additional actions when this inventory-action completed successfully.
|
void |
CreativeInventoryAction.onExecuteSuccess(CloudPlayer source) |
boolean |
DropItemAction.onPreExecute(CloudPlayer source) |
boolean |
InventoryAction.onPreExecute(CloudPlayer source)
Called by inventory transactions before any actions are processed.
|
| Modifier and Type | Method and Description |
|---|---|
Set<CloudPlayer> |
CloudLevel.getChunkPlayers(int chunkX,
int chunkZ) |
Map<Long,CloudPlayer> |
CloudLevel.getPlayers() |
| Modifier and Type | Method and Description |
|---|---|
Set<CloudPlayer> |
UnsafeChunk.getLoaders() |
Set<CloudPlayer> |
CloudChunk.getPlayerLoaders() |
Set<CloudPlayer> |
UnsafeChunk.getPlayerLoaders() |
Set<CloudPlayer> |
CloudLockableChunk.getPlayers() |
Set<CloudPlayer> |
CloudChunk.getPlayers() |
Set<CloudPlayer> |
UnsafeChunk.getPlayers()
Gets an immutable copy of players currently in this chunk
|
| Modifier and Type | Method and Description |
|---|---|
org.cloudburstmc.server.network.BedrockInterface.NukkitSessionListener |
BedrockInterface.initDisconnectHandler(CloudPlayer player) |
| Modifier and Type | Method and Description |
|---|---|
static InventoryAction |
InventoryTransactionUtils.createInventoryAction(CloudPlayer player,
com.nukkitx.protocol.bedrock.data.inventory.InventoryActionData inventoryActionData) |
| Modifier and Type | Field and Description |
|---|---|
protected Map<UUID,CloudPlayer> |
CloudPlayer.hiddenPlayers |
| Modifier and Type | Method and Description |
|---|---|
CloudPlayer |
PlayerFood.getPlayer() |
CloudPlayer |
PlayerLoginData.initializePlayer() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
CloudPlayer.canSee(CloudPlayer player) |
void |
CloudPlayer.closeInventory(CloudPlayer who) |
void |
CloudPlayer.hidePlayer(CloudPlayer player) |
void |
CloudPlayer.openInventory(CloudPlayer who) |
void |
CloudPlayer.showPlayer(CloudPlayer player) |
void |
CloudPlayer.spawnTo(CloudPlayer player) |
| Modifier and Type | Method and Description |
|---|---|
void |
CloudPlayer.sendPosition(com.nukkitx.math.vector.Vector3f pos,
double yaw,
double pitch,
com.nukkitx.protocol.bedrock.packet.MovePlayerPacket.Mode mode,
Set<CloudPlayer> targets) |
| Constructor and Description |
|---|
PlayerFood(CloudPlayer player,
int foodLevel,
float foodSaturationLevel) |
| Constructor and Description |
|---|
PlayerPacketHandler(CloudPlayer player) |
| Constructor and Description |
|---|
PlayerChunkManager(CloudPlayer player) |
| Modifier and Type | Method and Description |
|---|---|
com.nukkitx.protocol.bedrock.packet.AvailableCommandsPacket |
CommandRegistry.createPacketFor(CloudPlayer player)
Used internally to obtain the AvailableCommandsPacket to send to a client.
|
| Modifier and Type | Method and Description |
|---|---|
CloudPlayer |
DummyBossBar.getPlayer() |
| Constructor and Description |
|---|
Builder(CloudPlayer player) |
Copyright © 2021. All rights reserved.