public class CloudPlayer extends EntityHuman implements org.cloudburstmc.api.command.CommandSender, org.cloudburstmc.api.inventory.InventoryHolder, org.cloudburstmc.api.level.ChunkLoader, org.cloudburstmc.api.player.Player
| Modifier and Type | Class and Description |
|---|---|
static class |
CloudPlayer.CraftingType |
| Modifier and Type | Field and Description |
|---|---|
protected CloudAdventureSettings |
adventureSettings |
org.cloudburstmc.api.block.Block |
breakingBlock |
protected int |
chunksPerTick |
protected boolean |
connected |
protected CraftingTransaction |
craftingTransaction |
long |
creationTime |
static float |
DEFAULT_SPEED |
protected String |
displayName |
protected Map<Long,DummyBossBar> |
dummyBossBars |
protected boolean |
enableClientCommand |
org.cloudburstmc.api.entity.projectile.FishingHook |
fishing |
protected PlayerFood |
foodData |
protected com.nukkitx.math.vector.Vector3f |
forceMovement |
protected AtomicInteger |
formWindowCount |
protected Map<Integer,Form<?>> |
formWindows |
protected Map<UUID,CloudPlayer> |
hiddenPlayers |
protected int |
inAirTicks |
protected String |
iusername |
long |
lastBreak |
protected int |
lastChorusFruitTeleport |
protected int |
lastEnderPearl |
long |
lastSkinChange |
boolean |
loggedIn |
static float |
MAXIMUM_SPEED |
protected int |
messageCounter |
protected com.nukkitx.math.vector.Vector3f |
newPosition |
int |
packetsRecieved |
protected it.unimi.dsi.fastutil.bytes.ByteSet |
permanentWindows |
int |
pickedXPOrb |
protected PlayerData |
playerData |
protected long |
randomClientId |
protected boolean |
removeFormat |
protected CustomForm |
serverSettings |
protected int |
serverSettingsId |
protected com.nukkitx.protocol.bedrock.BedrockServerSession |
session |
protected com.nukkitx.math.vector.Vector3i |
sleeping |
boolean |
spawned |
protected org.cloudburstmc.api.level.Location |
spawnLocation |
protected int |
spawnThreshold |
com.nukkitx.math.vector.Vector3f |
speed |
protected int |
startAction |
protected int |
startAirTicks |
protected float |
stepHeight |
protected com.nukkitx.math.vector.Vector3f |
teleportPosition |
protected String |
username |
protected int |
viewDistance |
protected byte |
windowCnt |
protected com.google.common.collect.BiMap<Byte,org.cloudburstmc.api.inventory.Inventory> |
windowIndex |
protected com.google.common.collect.BiMap<org.cloudburstmc.api.inventory.Inventory,Byte> |
windows |
identity, skinattackTime, invisible, movementSpeed, turtleTicksabsorption, age, blocksAround, boundingBox, chunk, closed, collisionBlockStates, data, deadTicks, effects, entityCollisionReduction, fallDistance, fireProof, fireTicks, firstMove, hasSpawned, health, highestPosition, inBlock, inPortalTicks, invulnerable, isCollided, isCollidedHorizontally, isCollidedVertically, isPlayer, isStatic, justCreated, keepMovement, lastDamageCause, lastMotion, lastPitch, lastPosition, lastUpdate, lastYaw, level, maxFireTicks, motion, motionChanged, noDamageTicks, onGround, passengers, pitch, pitchDelta, position, positionChanged, scale, server, tag, ticksLived, timing, vehicle, yaw, yawDelta, ySize| Constructor and Description |
|---|
CloudPlayer(com.nukkitx.protocol.bedrock.BedrockServerSession session,
ClientChainData chainData) |
| Modifier and Type | Method and Description |
|---|---|
org.cloudburstmc.api.permission.PermissionAttachment |
addAttachment(org.cloudburstmc.api.plugin.PluginContainer plugin) |
org.cloudburstmc.api.permission.PermissionAttachment |
addAttachment(org.cloudburstmc.api.plugin.PluginContainer plugin,
String name) |
org.cloudburstmc.api.permission.PermissionAttachment |
addAttachment(org.cloudburstmc.api.plugin.PluginContainer plugin,
String name,
Boolean value) |
protected void |
addDefaultWindows() |
void |
addExperience(int add) |
void |
addMovement(double x,
double y,
double z,
double yaw,
double pitch,
double headYaw) |
byte |
addWindow(org.cloudburstmc.api.inventory.Inventory inventory,
Byte forceId,
boolean isPermanent) |
boolean |
attack(org.cloudburstmc.api.event.entity.EntityDamageEvent source) |
boolean |
awardAchievement(String achievementId) |
static int |
calculateRequireExperience(int level) |
boolean |
canCollideWith(org.cloudburstmc.api.entity.Entity entity) |
boolean |
canInteract(com.nukkitx.math.vector.Vector3f pos,
double maxDistance) |
boolean |
canInteract(com.nukkitx.math.vector.Vector3f pos,
double maxDistance,
double maxDiff) |
boolean |
canOpenInventory() |
boolean |
canSee(CloudPlayer player) |
boolean |
chat(String message)
Sends a chat message as this player.
|
protected void |
checkBlockCollision() |
protected void |
checkChunks() |
protected void |
checkGroundState(double movX,
double movY,
double movZ,
double dx,
double dy,
double dz) |
void |
checkInteractNearby() |
protected void |
checkNearEntities() |
void |
checkNetwork() |
protected boolean |
checkTeleportPosition() |
void |
clearTitle() |
void |
close() |
void |
close(String message) |
void |
close(String message,
String reason) |
void |
close(String message,
String reason,
boolean notify) |
void |
close(org.cloudburstmc.api.locale.TextContainer message) |
void |
close(org.cloudburstmc.api.locale.TextContainer message,
String reason) |
void |
close(org.cloudburstmc.api.locale.TextContainer message,
String reason,
boolean notify) |
void |
closeInventory(CloudPlayer who) |
void |
completeLoginSequence() |
protected com.nukkitx.protocol.bedrock.BedrockPacket |
createAddEntityPacket() |
long |
createBossBar(DummyBossBar dummyBossBar)
Creates and sends a BossBar to the player
|
long |
createBossBar(String text,
int length)
Deprecated.
|
protected void |
doFirstSpawn() |
boolean |
dropItem(org.cloudburstmc.api.item.ItemStack item)
Drops an item on the ground in front of the player.
|
boolean |
equals(Object obj) |
String |
getAddress() |
CloudAdventureSettings |
getAdventureSettings() |
boolean |
getAllowFlight()
Deprecated.
|
String |
getButtonText() |
PlayerChunkManager |
getChunkManager() |
int |
getChunkRadius() |
Long |
getClientId()
Deprecated.
|
String |
getClientSecret() |
CloudCraftingGrid |
getCraftingInventory() |
CraftingTransaction |
getCraftingTransaction() |
PlayerCursorInventory |
getCursorInventory() |
String |
getDisplayName() |
org.cloudburstmc.api.item.ItemStack[] |
getDrops() |
DummyBossBar |
getDummyBossBar(long bossBarId)
Get a DummyBossBar object
|
Map<Long,DummyBossBar> |
getDummyBossBars()
Get all DummyBossBar objects
|
Map<String,org.cloudburstmc.api.permission.PermissionAttachmentInfo> |
getEffectivePermissions() |
CloudEnderChestInventory |
getEnderChestInventory() |
org.cloudburstmc.api.entity.Interactable |
getEntityPlayerLookingAt(int maxDistance)
Returns the Entity the player is looking at currently
|
int |
getExperience() |
int |
getExperienceLevel() |
OptionalLong |
getFirstPlayed() |
PlayerFood |
getFoodData() |
com.nukkitx.math.vector.Vector3f |
getForceMovement() |
org.cloudburstmc.api.player.GameMode |
getGamemode() |
int |
getInAirTicks() |
CloudPlayerInventory |
getInventory() |
org.cloudburstmc.api.entity.Entity |
getKiller() |
int |
getLastChorusFruitTeleport() |
int |
getLastEnderPearlThrowingTick() |
OptionalLong |
getLastPlayed() |
TranslationContainer |
getLeaveMessage() |
int |
getLoaderId() |
Locale |
getLocale() |
org.cloudburstmc.api.util.LoginChainData |
getLoginChainData() |
String |
getName() |
com.nukkitx.math.vector.Vector3f |
getNewPosition() |
com.nukkitx.math.vector.Vector3f |
getNextPosition() |
long |
getPing() |
int |
getPort() |
boolean |
getRemoveFormat() |
com.nukkitx.protocol.bedrock.data.skin.SerializedSkin |
getSerializedSkin() |
CloudServer |
getServer() |
UUID |
getServerId() |
CustomForm |
getServerSettings() |
int |
getServerSettingsId() |
org.cloudburstmc.api.player.skin.Skin |
getSkin() |
InetSocketAddress |
getSocketAddress() |
org.cloudburstmc.api.level.Location |
getSpawn() |
int |
getStartActionTick() |
com.nukkitx.math.vector.Vector3f |
getTeleportPosition() |
Optional<org.cloudburstmc.api.inventory.Inventory> |
getTopWindow() |
org.cloudburstmc.api.blockentity.EnderChest |
getViewingEnderChest() |
org.cloudburstmc.api.inventory.Inventory |
getWindowById(int id) |
byte |
getWindowId(org.cloudburstmc.api.inventory.Inventory inventory) |
String |
getXuid() |
void |
handleDataPacket(com.nukkitx.protocol.bedrock.BedrockPacket packet) |
boolean |
hasAchievement(String achievementId) |
boolean |
hasAutoJump()
Deprecated.
|
int |
hashCode() |
boolean |
hasPermission(org.cloudburstmc.api.permission.Permission permission) |
boolean |
hasPermission(String name) |
boolean |
hasPlayedBefore() |
void |
hidePlayer(CloudPlayer player) |
protected void |
initEntity() |
boolean |
isAdventure() |
boolean |
isBanned() |
boolean |
isBreakingBlock() |
boolean |
isChunkInView(int x,
int z) |
boolean |
isConnected() |
boolean |
isCreative() |
boolean |
isEnableClientCommand() |
boolean |
isFoodEnabled() |
boolean |
isInitialized() |
boolean |
isLoaderActive() |
boolean |
isOnline() |
boolean |
isOp() |
boolean |
isPermissionSet(org.cloudburstmc.api.permission.Permission permission) |
boolean |
isPermissionSet(String name) |
boolean |
isPlayer() |
boolean |
isSleeping() |
boolean |
isSpawned() |
boolean |
isSpectator() |
boolean |
isSurvival() |
boolean |
isUsingItem()
Returns whether the player is currently using an item (right-click and hold).
|
boolean |
isWhitelisted() |
boolean |
kick() |
boolean |
kick(org.cloudburstmc.api.event.player.PlayerKickEvent.Reason reason) |
boolean |
kick(org.cloudburstmc.api.event.player.PlayerKickEvent.Reason reason,
boolean isAdmin) |
boolean |
kick(org.cloudburstmc.api.event.player.PlayerKickEvent.Reason reason,
String reasonString) |
boolean |
kick(org.cloudburstmc.api.event.player.PlayerKickEvent.Reason reason,
String reasonString,
boolean isAdmin) |
boolean |
kick(String reason) |
boolean |
kick(String reason,
boolean isAdmin) |
void |
kill() |
void |
loadAdditionalData(com.nukkitx.nbt.NbtMap tag) |
void |
onChorusFruitTeleport() |
void |
onChunkChanged(org.cloudburstmc.api.level.chunk.Chunk chunk) |
void |
onChunkLoaded(org.cloudburstmc.api.level.chunk.Chunk chunk) |
void |
onChunkUnloaded(org.cloudburstmc.api.level.chunk.Chunk chunk) |
void |
onThrowEnderPearl() |
boolean |
onUpdate(int currentTick) |
void |
openInventory(CloudPlayer who) |
boolean |
pickupEntity(org.cloudburstmc.api.entity.Entity entity,
boolean near) |
void |
processLogin() |
protected void |
processMovement(int tickDiff) |
void |
recalculatePermissions() |
void |
removeAchievement(String achievementId) |
void |
removeAllWindows() |
void |
removeAllWindows(boolean permanent) |
void |
removeAttachment(org.cloudburstmc.api.permission.PermissionAttachment attachment) |
void |
removeBossBar(long bossBarId)
Removes a BossBar
|
Form<?> |
removeFormWindow(int id) |
void |
removeWindow(org.cloudburstmc.api.inventory.Inventory inventory) |
org.cloudburstmc.api.inventory.Inventory |
removeWindowById(byte id) |
void |
resetFallDistance() |
void |
resetInAirTicks() |
void |
resetTitleSettings()
Resets both title animation times and subtitle for the next shown title
|
void |
save() |
void |
save(boolean async) |
void |
saveAdditionalData(com.nukkitx.nbt.NbtMapBuilder tag) |
void |
sendActionBar(String title) |
void |
sendActionBar(String title,
int fadein,
int duration,
int fadeout) |
void |
sendAllInventories() |
void |
sendAttributes() |
void |
sendChat(String message) |
void |
sendChat(String source,
String message) |
void |
sendCommandData() |
void |
sendExperience() |
void |
sendExperience(int exp) |
void |
sendExperienceLevel() |
void |
sendExperienceLevel(int level) |
void |
sendMessage(String message) |
void |
sendMessage(org.cloudburstmc.api.locale.TextContainer message) |
boolean |
sendPacket(com.nukkitx.protocol.bedrock.BedrockPacket packet)
0 is true
-1 is false
other is identifer
|
boolean |
sendPacketImmediately(com.nukkitx.protocol.bedrock.BedrockPacket packet)
0 is true
-1 is false
other is identifer
|
void |
sendPacketInternal(com.nukkitx.protocol.bedrock.BedrockPacket packet) |
protected void |
sendPlayStatus(com.nukkitx.protocol.bedrock.packet.PlayStatusPacket.Status status) |
protected void |
sendPlayStatus(com.nukkitx.protocol.bedrock.packet.PlayStatusPacket.Status status,
boolean immediate) |
void |
sendPopup(String message) |
void |
sendPopup(String message,
String subtitle) |
void |
sendPosition(com.nukkitx.math.vector.Vector3f pos) |
void |
sendPosition(com.nukkitx.math.vector.Vector3f pos,
double yaw) |
void |
sendPosition(com.nukkitx.math.vector.Vector3f pos,
double yaw,
double pitch) |
void |
sendPosition(com.nukkitx.math.vector.Vector3f pos,
double yaw,
double pitch,
com.nukkitx.protocol.bedrock.packet.MovePlayerPacket.Mode mode) |
void |
sendPosition(com.nukkitx.math.vector.Vector3f pos,
double yaw,
double pitch,
com.nukkitx.protocol.bedrock.packet.MovePlayerPacket.Mode mode,
Set<CloudPlayer> targets) |
void |
sendSettings()
Deprecated.
|
void |
sendSignChange(com.nukkitx.math.vector.Vector3i position,
String[] lines)
Sends a sign change.
|
void |
sendTip(String message) |
void |
sendTitle(String title) |
void |
sendTitle(String title,
String subtitle) |
void |
sendTitle(String title,
String subtitle,
int fadeIn,
int stay,
int fadeOut) |
void |
sendTranslation(String message,
Object... parameters) |
void |
setAdventureSettings(CloudAdventureSettings adventureSettings) |
void |
setAllowFlight(boolean value)
Deprecated.
|
void |
setAllowInteract(boolean value) |
void |
setAllowInteract(boolean value,
boolean containers) |
void |
setAllowModifyWorld(boolean value) |
void |
setAttribute(org.cloudburstmc.api.entity.Attribute attr) |
void |
setAutoJump(boolean value)
Deprecated.
|
void |
setBanned(boolean value) |
void |
setButtonText(String text) |
void |
setChunkRadius(int chunkRadius) |
void |
setCraftingTransaction(CraftingTransaction craftingTransaction) |
void |
setDisplayName(String displayName) |
void |
setEnableClientCommand(boolean enable) |
void |
setExperience(int exp) |
void |
setExperience(int exp,
int level) |
void |
setFoodEnabled(boolean foodEnabled) |
void |
setForceMovement(com.nukkitx.math.vector.Vector3f forceMovement) |
boolean |
setGamemode(org.cloudburstmc.api.player.GameMode gamemode) |
boolean |
setGamemode(org.cloudburstmc.api.player.GameMode gamemode,
boolean clientSide) |
void |
setHealth(float health) |
void |
setInitialized(boolean initialized) |
void |
setLocale(Locale locale) |
void |
setLoginChainData(org.cloudburstmc.api.util.LoginChainData loginChainData) |
void |
setMaxHealth(int maxHealth) |
boolean |
setMotion(com.nukkitx.math.vector.Vector3f motion) |
void |
setMovementSpeed(float speed) |
void |
setMovementSpeed(float speed,
boolean send) |
void |
setNewPosition(com.nukkitx.math.vector.Vector3f newPosition) |
void |
setOp(boolean value) |
void |
setRemoveFormat() |
void |
setRemoveFormat(boolean remove) |
int |
setServerSettings(CustomForm window)
Shows a new setting page in game settings
You can find out settings result by listening to PlayerFormRespondedEvent
|
void |
setSkin(com.nukkitx.protocol.bedrock.data.skin.SerializedSkin skin) |
void |
setSkin(org.cloudburstmc.api.player.skin.Skin skin) |
void |
setSpawn(org.cloudburstmc.api.level.Location location) |
void |
setSprinting(boolean value) |
void |
setSubtitle(String subtitle) |
void |
setTeleportPosition(com.nukkitx.math.vector.Vector3f teleportPosition) |
void |
setTitleAnimationTimes(int fadein,
int duration,
int fadeout) |
void |
setUsingItem(boolean value) |
void |
setViewingEnderChest(org.cloudburstmc.api.blockentity.EnderChest chest) |
void |
setWhitelisted(boolean value) |
int |
showFormWindow(Form<?> window)
Shows a new FormWindow to the player
You can find out FormWindow result by listening to PlayerFormRespondedEvent
|
int |
showFormWindow(Form<?> window,
int id)
Shows a new FormWindow to the player
You can find out FormWindow result by listening to PlayerFormRespondedEvent
|
void |
showPlayer(CloudPlayer player) |
void |
showXboxProfile(String xuid)
Show a window of a XBOX account's profile
|
boolean |
sleepOn(com.nukkitx.math.vector.Vector3i pos) |
void |
spawnTo(CloudPlayer player) |
void |
startAction() |
void |
startFishing(org.cloudburstmc.api.item.ItemStack fishingRod) |
void |
stopAction() |
void |
stopFishing(boolean click) |
void |
stopSleep() |
boolean |
switchLevel(CloudLevel level) |
boolean |
teleport(org.cloudburstmc.api.level.Location location,
org.cloudburstmc.api.event.player.PlayerTeleportEvent.TeleportCause cause) |
void |
teleportImmediate(org.cloudburstmc.api.level.Location location) |
void |
teleportImmediate(org.cloudburstmc.api.level.Location location,
org.cloudburstmc.api.event.player.PlayerTeleportEvent.TeleportCause cause) |
String |
toString() |
void |
transfer(InetSocketAddress address) |
void |
updateBossBar(String text,
int length,
long bossBarId)
Deprecated.
|
calculateEnchantmentProtectionFactor, despawnFrom, getBaseOffset, getEyeHeight, getHeight, getLength, getWidth, isGliding, isSneaking, isSprinting, isSwimming, setGliding, setGliding, setOnFire, setServerId, setSneaking, setSneaking, setSprinting, setSwimming, setSwimming, spawnTocollidingWith, entityBaseTick, entityBaseTick, getAirTicks, getDrag, getGravity, getLineOfSight, getLineOfSight, getLineOfSight, getMovementSpeed, getTargetBlock, getTargetBlock, hasLineOfSight, knockBack, setAirTicksaddEffect, addMotion, attack, broadcastLinkPacket, canBeMovedByCurrents, canClimb, canClimbWalls, canCollide, canPassThrough, canTriggerPressurePlate, canTriggerWalking, checkObstruction, checkObstruction, despawnFrom, despawnFromAll, dismount, extinguish, fall, fastMove, getAbsorption, getAir, getBlocksAround, getBoundingBox, getCardinalDirection, getChunk, getCollisionBlocks, getData, getDirection, getDirectionPlane, getDirectionVector, getEffect, getEffect, getEffects, getFireTicks, getHealth, getHighestPosition, getHorizontalDirection, getLastDamageCause, getLevel, getLocation, getMaxHealth, getMotion, getMountedOffset, getNameTag, getNoDamageTicks, getOwner, getPassenger, getPassengers, getPitch, getPosition, getRuntimeId, getScale, getScoreTag, getSeatPosition, getStepHeight, getTag, getType, getUniqueId, getVehicle, getViewers, getX, getY, getYaw, getZ, handleLavaMovement, hasControllingPassenger, hasEffect, hasEffect, hasNameTag, heal, heal, init, isAlive, isClosed, isControlling, isImmobile, isInsideOfFire, isInsideOfSolid, isInsideOfWater, isInvulnerable, isNameTagAlwaysVisible, isNameTagVisible, isOnGround, isPassenger, mount, move, move, onCollideWithPlayer, onDismount, onEntityCollision, onInteract, onInteract, onMount, onStruckByLightning, recalculateBoundingBox, recalculateEffectColor, removeAllEffects, removeEffect, removeEffect, respawnToAll, scheduleUpdate, sendData, sendData, sendFlags, sendPotionEffects, setAbsorption, setAir, setCanClimb, setCanClimb, setCanClimbWalls, setCanClimbWalls, setFallDistance, setHighestPosition, setImmobile, setImmobile, setInvulnerable, setLastDamageCause, setNameTag, setNameTagAlwaysVisible, setNameTagAlwaysVisible, setNameTagVisible, setNameTagVisible, setNoDamageTicks, setOnGround, setOwner, setPosition, setPositionAndRotation, setRotation, setScale, setScoreTag, setSeatPosition, spawnToAll, teleport, teleport, teleport, updateFallState, updateMovement, updatePassengerPosition, updatePassengersclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetLevel, getPosition, getX, getZaddWindow, addWindow, getCardinalDirection, getLevel, getMovementSpeed, isInsideOfWater, isOnGround, isSneakingaddEffect, attack, canBeMovedByCurrents, canCollide, canPassThrough, canTriggerPressurePlate, despawnFrom, despawnFromAll, dismount, extinguish, fall, getAbsorption, getBoundingBox, getChunk, getDirection, getDirectionPlane, getDirectionVector, getDrag, getEffect, getEffect, getEffects, getEyeHeight, getFireTicks, getGravity, getHealth, getHeight, getHighestPosition, getHorizontalDirection, getLastDamageCause, getLength, getLocation, getMaxHealth, getMotion, getNameTag, getNoDamageTicks, getOwner, getPassengers, getPitch, getPosition, getRuntimeId, getScale, getSeatPosition, getType, getUniqueId, getVehicle, getViewers, getWidth, getX, getY, getYaw, getZ, hasControllingPassenger, hasEffect, hasEffect, hasNameTag, heal, heal, isAlive, isClosed, isControlling, isNameTagVisible, isOnFire, isPassenger, isUndead, mount, mount, onDismount, onEntityCollision, onInteract, onMount, onStruckByLightning, removeAllEffects, removeEffect, removeEffect, setAbsorption, setHighestPosition, setNameTag, setNameTagVisible, setNoDamageTicks, setOnFire, setOnGround, setOwner, setPosition, setPositionAndRotation, setRotation, setScale, setSeatPosition, spawnTo, spawnToAll, teleport, teleport, teleportpublic static final float DEFAULT_SPEED
public static final float MAXIMUM_SPEED
protected final com.nukkitx.protocol.bedrock.BedrockServerSession session
public boolean spawned
public boolean loggedIn
public long lastBreak
public com.nukkitx.math.vector.Vector3f speed
protected final com.google.common.collect.BiMap<org.cloudburstmc.api.inventory.Inventory,Byte> windows
protected final com.google.common.collect.BiMap<Byte,org.cloudburstmc.api.inventory.Inventory> windowIndex
protected final it.unimi.dsi.fastutil.bytes.ByteSet permanentWindows
protected byte windowCnt
protected final PlayerData playerData
protected int messageCounter
protected com.nukkitx.math.vector.Vector3f forceMovement
protected CraftingTransaction craftingTransaction
public long creationTime
protected long randomClientId
protected com.nukkitx.math.vector.Vector3f teleportPosition
protected final PlayerFood foodData
protected boolean connected
protected boolean removeFormat
protected String username
protected String iusername
protected String displayName
protected int startAction
protected com.nukkitx.math.vector.Vector3f newPosition
protected float stepHeight
protected final Map<UUID,CloudPlayer> hiddenPlayers
protected int viewDistance
protected final int chunksPerTick
protected final int spawnThreshold
protected int inAirTicks
protected int startAirTicks
protected CloudAdventureSettings adventureSettings
protected com.nukkitx.math.vector.Vector3i sleeping
protected org.cloudburstmc.api.level.Location spawnLocation
protected boolean enableClientCommand
protected int lastEnderPearl
protected int lastChorusFruitTeleport
public org.cloudburstmc.api.block.Block breakingBlock
public int pickedXPOrb
protected AtomicInteger formWindowCount
protected CustomForm serverSettings
protected int serverSettingsId
protected Map<Long,DummyBossBar> dummyBossBars
public org.cloudburstmc.api.entity.projectile.FishingHook fishing
public int packetsRecieved
public long lastSkinChange
public CloudPlayer(com.nukkitx.protocol.bedrock.BedrockServerSession session,
ClientChainData chainData)
public int getStartActionTick()
public void startAction()
public void stopAction()
public int getLastEnderPearlThrowingTick()
public void onThrowEnderPearl()
public int getLastChorusFruitTeleport()
public void onChorusFruitTeleport()
public org.cloudburstmc.api.blockentity.EnderChest getViewingEnderChest()
getViewingEnderChest in interface org.cloudburstmc.api.player.Playerpublic void setViewingEnderChest(org.cloudburstmc.api.blockentity.EnderChest chest)
setViewingEnderChest in interface org.cloudburstmc.api.player.Playerpublic CloudCraftingGrid getCraftingInventory()
getCraftingInventory in interface org.cloudburstmc.api.player.Playerpublic TranslationContainer getLeaveMessage()
public String getClientSecret()
@Deprecated public Long getClientId()
public boolean isBanned()
isBanned in interface org.cloudburstmc.api.player.Playerpublic void setBanned(boolean value)
setBanned in interface org.cloudburstmc.api.player.Playerpublic boolean isWhitelisted()
isWhitelisted in interface org.cloudburstmc.api.player.Playerpublic void setWhitelisted(boolean value)
setWhitelisted in interface org.cloudburstmc.api.player.Playerpublic boolean isInitialized()
public void setInitialized(boolean initialized)
public OptionalLong getFirstPlayed()
getFirstPlayed in interface org.cloudburstmc.api.player.Playerpublic CloudAdventureSettings getAdventureSettings()
public void setAdventureSettings(CloudAdventureSettings adventureSettings)
public void resetInAirTicks()
resetInAirTicks in interface org.cloudburstmc.api.player.Player@Deprecated public void setAllowFlight(boolean value)
@Deprecated public boolean getAllowFlight()
public void setAllowModifyWorld(boolean value)
public void setAllowInteract(boolean value)
public void setAllowInteract(boolean value,
boolean containers)
@Deprecated public void setAutoJump(boolean value)
@Deprecated public boolean hasAutoJump()
public OptionalLong getLastPlayed()
getLastPlayed in interface org.cloudburstmc.api.player.Playerpublic CloudServer getServer()
getServer in interface org.cloudburstmc.api.command.CommandSendergetServer in interface org.cloudburstmc.api.entity.EntitygetServer in interface org.cloudburstmc.api.player.PlayergetServer in class BaseEntitypublic boolean getRemoveFormat()
public void setRemoveFormat()
public void setRemoveFormat(boolean remove)
public boolean hasPlayedBefore()
hasPlayedBefore in interface org.cloudburstmc.api.player.Playerpublic boolean canSee(CloudPlayer player)
public void hidePlayer(CloudPlayer player)
public boolean canCollideWith(org.cloudburstmc.api.entity.Entity entity)
canCollideWith in interface org.cloudburstmc.api.entity.EntitycanCollideWith in class BaseEntitypublic void spawnTo(CloudPlayer player)
spawnTo in class BaseEntityprotected com.nukkitx.protocol.bedrock.BedrockPacket createAddEntityPacket()
createAddEntityPacket in class EntityHumanpublic boolean isOnline()
isOnline in interface org.cloudburstmc.api.player.Playerpublic boolean isOp()
isOp in interface org.cloudburstmc.api.permission.ServerOperatorisOp in interface org.cloudburstmc.api.player.Playerpublic void setOp(boolean value)
setOp in interface org.cloudburstmc.api.permission.ServerOperatorsetOp in interface org.cloudburstmc.api.player.Playerpublic boolean isSpawned()
isSpawned in interface org.cloudburstmc.api.player.Playerpublic boolean isPermissionSet(String name)
isPermissionSet in interface org.cloudburstmc.api.permission.Permissiblepublic boolean isPermissionSet(org.cloudburstmc.api.permission.Permission permission)
isPermissionSet in interface org.cloudburstmc.api.permission.Permissiblepublic boolean hasPermission(String name)
hasPermission in interface org.cloudburstmc.api.permission.Permissiblepublic boolean hasPermission(org.cloudburstmc.api.permission.Permission permission)
hasPermission in interface org.cloudburstmc.api.permission.Permissiblepublic org.cloudburstmc.api.permission.PermissionAttachment addAttachment(org.cloudburstmc.api.plugin.PluginContainer plugin)
addAttachment in interface org.cloudburstmc.api.permission.Permissiblepublic org.cloudburstmc.api.permission.PermissionAttachment addAttachment(org.cloudburstmc.api.plugin.PluginContainer plugin,
String name)
addAttachment in interface org.cloudburstmc.api.permission.Permissiblepublic org.cloudburstmc.api.permission.PermissionAttachment addAttachment(org.cloudburstmc.api.plugin.PluginContainer plugin,
String name,
Boolean value)
addAttachment in interface org.cloudburstmc.api.permission.Permissiblepublic void removeAttachment(org.cloudburstmc.api.permission.PermissionAttachment attachment)
removeAttachment in interface org.cloudburstmc.api.permission.Permissiblepublic void recalculatePermissions()
recalculatePermissions in interface org.cloudburstmc.api.permission.Permissiblepublic boolean isEnableClientCommand()
public void resetFallDistance()
resetFallDistance in interface org.cloudburstmc.api.entity.EntityresetFallDistance in class BaseEntitypublic void setEnableClientCommand(boolean enable)
public Map<String,org.cloudburstmc.api.permission.PermissionAttachmentInfo> getEffectivePermissions()
getEffectivePermissions in interface org.cloudburstmc.api.permission.Permissiblepublic void showPlayer(CloudPlayer player)
protected void initEntity()
initEntity in class EntityHumanpublic boolean isPlayer()
isPlayer in interface org.cloudburstmc.api.command.CommandSenderpublic void sendCommandData()
public void removeAchievement(String achievementId)
public boolean isConnected()
isConnected in interface org.cloudburstmc.api.player.Playerpublic String getDisplayName()
getDisplayName in interface org.cloudburstmc.api.player.Playerpublic void setDisplayName(String displayName)
public boolean hasAchievement(String achievementId)
public org.cloudburstmc.api.player.skin.Skin getSkin()
getSkin in interface org.cloudburstmc.api.player.PlayergetSkin in class EntityHumanpublic void setSkin(org.cloudburstmc.api.player.skin.Skin skin)
setSkin in interface org.cloudburstmc.api.player.PlayersetSkin in class EntityHumanpublic com.nukkitx.protocol.bedrock.data.skin.SerializedSkin getSerializedSkin()
public void setSkin(com.nukkitx.protocol.bedrock.data.skin.SerializedSkin skin)
public UUID getServerId()
getServerId in interface org.cloudburstmc.api.player.PlayergetServerId in class EntityHumanpublic String getAddress()
public InetSocketAddress getSocketAddress()
public int getPort()
public boolean isSleeping()
isSleeping in interface org.cloudburstmc.api.player.Playerpublic int getInAirTicks()
public com.nukkitx.math.vector.Vector3f getNextPosition()
public boolean isUsingItem()
public String getButtonText()
public void setUsingItem(boolean value)
public void setButtonText(String text)
public org.cloudburstmc.api.level.Location getSpawn()
getSpawn in interface org.cloudburstmc.api.player.Playerpublic void setSpawn(org.cloudburstmc.api.level.Location location)
setSpawn in interface org.cloudburstmc.api.player.Playerprotected void doFirstSpawn()
public long getPing()
public boolean sleepOn(com.nukkitx.math.vector.Vector3i pos)
sleepOn in interface org.cloudburstmc.api.player.Playerpublic void stopSleep()
stopSleep in interface org.cloudburstmc.api.player.Playerpublic boolean awardAchievement(String achievementId)
public org.cloudburstmc.api.player.GameMode getGamemode()
getGamemode in interface org.cloudburstmc.api.player.Playerpublic boolean setGamemode(org.cloudburstmc.api.player.GameMode gamemode)
public boolean sendPacket(com.nukkitx.protocol.bedrock.BedrockPacket packet)
packet - packet to sendpublic void sendPacketInternal(com.nukkitx.protocol.bedrock.BedrockPacket packet)
@Deprecated public void sendSettings()
public boolean isSurvival()
isSurvival in interface org.cloudburstmc.api.player.Playerpublic boolean isCreative()
isCreative in interface org.cloudburstmc.api.player.Playerpublic boolean isSpectator()
isSpectator in interface org.cloudburstmc.api.player.Playerpublic boolean isAdventure()
isAdventure in interface org.cloudburstmc.api.player.Playerpublic org.cloudburstmc.api.item.ItemStack[] getDrops()
getDrops in class EntityHumanpublic boolean sendPacketImmediately(com.nukkitx.protocol.bedrock.BedrockPacket packet)
packet - packet to sendprotected void checkBlockCollision()
checkBlockCollision in class BaseEntityprotected void checkNearEntities()
public boolean setGamemode(org.cloudburstmc.api.player.GameMode gamemode,
boolean clientSide)
public boolean canOpenInventory()
public void openInventory(CloudPlayer who)
public void closeInventory(CloudPlayer who)
public boolean setMotion(com.nukkitx.math.vector.Vector3f motion)
setMotion in interface org.cloudburstmc.api.entity.EntitysetMotion in class BaseEntitypublic void sendAttributes()
protected void checkGroundState(double movX,
double movY,
double movZ,
double dx,
double dy,
double dz)
checkGroundState in class BaseEntitypublic void checkInteractNearby()
protected void processMovement(int tickDiff)
public void addMovement(double x,
double y,
double z,
double yaw,
double pitch,
double headYaw)
addMovement in class BaseEntitypublic boolean onUpdate(int currentTick)
onUpdate in interface org.cloudburstmc.api.entity.EntityonUpdate in class BaseEntitypublic org.cloudburstmc.api.entity.Interactable getEntityPlayerLookingAt(int maxDistance)
maxDistance - the maximum distance to check for entitiespublic boolean canInteract(com.nukkitx.math.vector.Vector3f pos,
double maxDistance)
public boolean canInteract(com.nukkitx.math.vector.Vector3f pos,
double maxDistance,
double maxDiff)
public void completeLoginSequence()
public void checkNetwork()
public void processLogin()
public boolean chat(String message)
message - message to sendpublic boolean kick()
public boolean kick(String reason, boolean isAdmin)
public boolean kick(String reason)
public boolean kick(org.cloudburstmc.api.event.player.PlayerKickEvent.Reason reason)
public boolean kick(org.cloudburstmc.api.event.player.PlayerKickEvent.Reason reason,
String reasonString)
public boolean kick(org.cloudburstmc.api.event.player.PlayerKickEvent.Reason reason,
boolean isAdmin)
public boolean kick(org.cloudburstmc.api.event.player.PlayerKickEvent.Reason reason,
String reasonString,
boolean isAdmin)
public void handleDataPacket(com.nukkitx.protocol.bedrock.BedrockPacket packet)
public int getChunkRadius()
public String getXuid()
getXuid in interface org.cloudburstmc.api.player.Playerpublic void sendMessage(String message)
sendMessage in interface org.cloudburstmc.api.command.CommandSenderpublic void sendMessage(org.cloudburstmc.api.locale.TextContainer message)
sendMessage in interface org.cloudburstmc.api.command.CommandSenderpublic void sendChat(String message)
public void sendPopup(String message)
public void sendTip(String message)
public void clearTitle()
public void resetTitleSettings()
public void setSubtitle(String subtitle)
public void setTitleAnimationTimes(int fadein,
int duration,
int fadeout)
public void sendTitle(String title)
public void sendActionBar(String title)
public void sendActionBar(String title, int fadein, int duration, int fadeout)
public void close()
close in interface org.cloudburstmc.api.entity.Entityclose in class EntityHumanpublic void close(String message)
public void close(org.cloudburstmc.api.locale.TextContainer message)
public void close(org.cloudburstmc.api.locale.TextContainer message,
String reason)
public void setChunkRadius(int chunkRadius)
public void save()
save in interface org.cloudburstmc.api.player.Playerpublic PlayerChunkManager getChunkManager()
public String getName()
getName in interface org.cloudburstmc.api.command.CommandSendergetName in interface org.cloudburstmc.api.entity.EntitygetName in interface org.cloudburstmc.api.player.PlayergetName in class EntityHumanpublic com.nukkitx.math.vector.Vector3f getTeleportPosition()
public void setTeleportPosition(com.nukkitx.math.vector.Vector3f teleportPosition)
public com.nukkitx.math.vector.Vector3f getForceMovement()
public void setForceMovement(com.nukkitx.math.vector.Vector3f forceMovement)
public com.nukkitx.math.vector.Vector3f getNewPosition()
public void setNewPosition(com.nukkitx.math.vector.Vector3f newPosition)
public void close(org.cloudburstmc.api.locale.TextContainer message,
String reason,
boolean notify)
public void setHealth(float health)
setHealth in interface org.cloudburstmc.api.entity.EntitysetHealth in class EntityLivingpublic void setMaxHealth(int maxHealth)
setMaxHealth in interface org.cloudburstmc.api.entity.EntitysetMaxHealth in class BaseEntitypublic int getExperience()
public int getExperienceLevel()
public void addExperience(int add)
public static int calculateRequireExperience(int level)
public void setExperience(int exp)
public void setExperience(int exp,
int level)
public void sendExperience()
public void sendExperience(int exp)
public void sendExperienceLevel()
public void sendExperienceLevel(int level)
public void setAttribute(org.cloudburstmc.api.entity.Attribute attr)
public void setMovementSpeed(float speed)
setMovementSpeed in interface org.cloudburstmc.api.player.PlayersetMovementSpeed in class EntityLivingpublic void setMovementSpeed(float speed,
boolean send)
public org.cloudburstmc.api.entity.Entity getKiller()
public boolean attack(org.cloudburstmc.api.event.entity.EntityDamageEvent source)
attack in interface org.cloudburstmc.api.entity.Entityattack in class EntityHumanpublic boolean dropItem(org.cloudburstmc.api.item.ItemStack item)
item - to droppublic void sendPosition(com.nukkitx.math.vector.Vector3f pos)
public void sendPosition(com.nukkitx.math.vector.Vector3f pos,
double yaw)
public void sendPosition(com.nukkitx.math.vector.Vector3f pos,
double yaw,
double pitch)
public void sendPosition(com.nukkitx.math.vector.Vector3f pos,
double yaw,
double pitch,
com.nukkitx.protocol.bedrock.packet.MovePlayerPacket.Mode mode)
public void sendPosition(com.nukkitx.math.vector.Vector3f pos,
double yaw,
double pitch,
com.nukkitx.protocol.bedrock.packet.MovePlayerPacket.Mode mode,
Set<CloudPlayer> targets)
public void loadAdditionalData(com.nukkitx.nbt.NbtMap tag)
loadAdditionalData in class EntityHumanpublic void saveAdditionalData(com.nukkitx.nbt.NbtMapBuilder tag)
saveAdditionalData in class EntityHumanpublic void save(boolean async)
save in interface org.cloudburstmc.api.player.Playerpublic void kill()
kill in interface org.cloudburstmc.api.entity.Entitykill in class EntityLivingprotected void sendPlayStatus(com.nukkitx.protocol.bedrock.packet.PlayStatusPacket.Status status)
protected void sendPlayStatus(com.nukkitx.protocol.bedrock.packet.PlayStatusPacket.Status status,
boolean immediate)
protected void checkChunks()
checkChunks in class BaseEntitypublic void teleportImmediate(org.cloudburstmc.api.level.Location location)
public void teleportImmediate(org.cloudburstmc.api.level.Location location,
org.cloudburstmc.api.event.player.PlayerTeleportEvent.TeleportCause cause)
public int showFormWindow(Form<?> window)
window - to showpublic int showFormWindow(Form<?> window, int id)
window - to showid - form idpublic Form<?> removeFormWindow(int id)
public CustomForm getServerSettings()
public int getServerSettingsId()
public int setServerSettings(CustomForm window)
window - to show on settings page@Deprecated public long createBossBar(String text, int length)
text - The BossBar messagelength - The BossBar percentagepublic long createBossBar(DummyBossBar dummyBossBar)
dummyBossBar - DummyBossBar Object (Instantiate it by the Class Builder)DummyBossBar.Builderpublic DummyBossBar getDummyBossBar(long bossBarId)
bossBarId - The BossBar IDSet BossBar text,
Set BossBar length,
Set BossBar colorpublic Map<Long,DummyBossBar> getDummyBossBars()
@Deprecated public void updateBossBar(String text, int length, long bossBarId)
text - The new BossBar messagelength - The new BossBar lengthbossBarId - The BossBar IDpublic void removeBossBar(long bossBarId)
bossBarId - The BossBar IDpublic byte getWindowId(org.cloudburstmc.api.inventory.Inventory inventory)
getWindowId in interface org.cloudburstmc.api.player.Playerpublic org.cloudburstmc.api.inventory.Inventory getWindowById(int id)
public byte addWindow(org.cloudburstmc.api.inventory.Inventory inventory,
Byte forceId,
boolean isPermanent)
addWindow in interface org.cloudburstmc.api.player.Playerpublic Optional<org.cloudburstmc.api.inventory.Inventory> getTopWindow()
public void removeWindow(org.cloudburstmc.api.inventory.Inventory inventory)
removeWindow in interface org.cloudburstmc.api.player.Playerpublic org.cloudburstmc.api.inventory.Inventory removeWindowById(byte id)
public void sendAllInventories()
protected void addDefaultWindows()
public CloudPlayerInventory getInventory()
getInventory in interface org.cloudburstmc.api.inventory.InventoryHoldergetInventory in interface org.cloudburstmc.api.player.PlayergetInventory in class EntityCreaturepublic CloudEnderChestInventory getEnderChestInventory()
getEnderChestInventory in interface org.cloudburstmc.api.player.Playerpublic PlayerCursorInventory getCursorInventory()
public CraftingTransaction getCraftingTransaction()
public void setCraftingTransaction(CraftingTransaction craftingTransaction)
public void removeAllWindows()
public void removeAllWindows(boolean permanent)
protected boolean checkTeleportPosition()
public boolean teleport(org.cloudburstmc.api.level.Location location,
org.cloudburstmc.api.event.player.PlayerTeleportEvent.TeleportCause cause)
teleport in interface org.cloudburstmc.api.entity.Entityteleport in class BaseEntitypublic boolean isChunkInView(int x,
int z)
public void onChunkChanged(org.cloudburstmc.api.level.chunk.Chunk chunk)
onChunkChanged in interface org.cloudburstmc.api.level.ChunkLoaderpublic int getLoaderId()
getLoaderId in interface org.cloudburstmc.api.level.ChunkLoaderpublic boolean isLoaderActive()
isLoaderActive in interface org.cloudburstmc.api.level.ChunkLoaderpublic boolean isFoodEnabled()
public void setFoodEnabled(boolean foodEnabled)
public PlayerFood getFoodData()
public void setLocale(Locale locale)
public Locale getLocale()
public void setSprinting(boolean value)
setSprinting in class EntityHumanpublic void transfer(InetSocketAddress address)
public org.cloudburstmc.api.util.LoginChainData getLoginChainData()
public void setLoginChainData(org.cloudburstmc.api.util.LoginChainData loginChainData)
public void onChunkUnloaded(org.cloudburstmc.api.level.chunk.Chunk chunk)
onChunkUnloaded in interface org.cloudburstmc.api.level.ChunkLoaderpublic void onChunkLoaded(org.cloudburstmc.api.level.chunk.Chunk chunk)
onChunkLoaded in interface org.cloudburstmc.api.level.ChunkLoaderpublic boolean isBreakingBlock()
public void showXboxProfile(String xuid)
xuid - XUIDpublic void sendSignChange(com.nukkitx.math.vector.Vector3i position,
String[] lines)
position - the position of the signlines - the lines to sendpublic void startFishing(org.cloudburstmc.api.item.ItemStack fishingRod)
public void stopFishing(boolean click)
public boolean switchLevel(CloudLevel level)
switchLevel in class BaseEntitypublic boolean pickupEntity(org.cloudburstmc.api.entity.Entity entity,
boolean near)
public String toString()
toString in class BaseEntityCopyright © 2021. All rights reserved.