Package net.glowstone.entity
Class GlowHumanEntity
java.lang.Object
net.glowstone.entity.GlowEntity
net.glowstone.entity.GlowLivingEntity
net.glowstone.entity.GlowHumanEntity
- All Implemented Interfaces:
net.kyori.adventure.audience.Audience
,net.kyori.adventure.text.event.HoverEventSource<net.kyori.adventure.text.event.HoverEvent.ShowEntity>
,org.bukkit.attribute.Attributable
,org.bukkit.command.CommandSender
,org.bukkit.entity.AnimalTamer
,org.bukkit.entity.Damageable
,org.bukkit.entity.Entity
,org.bukkit.entity.HumanEntity
,org.bukkit.entity.LivingEntity
,org.bukkit.inventory.InventoryHolder
,org.bukkit.metadata.Metadatable
,org.bukkit.Nameable
,org.bukkit.permissions.Permissible
,org.bukkit.permissions.ServerOperator
,org.bukkit.persistence.PersistentDataHolder
,org.bukkit.projectiles.ProjectileSource
- Direct Known Subclasses:
GlowPlayer
public abstract class GlowHumanEntity
extends GlowLivingEntity
implements org.bukkit.entity.HumanEntity
Represents a human entity, such as an NPC or a player.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.bukkit.entity.Entity
org.bukkit.entity.Entity.Spigot
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.bukkit.permissions.PermissibleBase
This human's PermissibleBase for permissions.protected boolean
Whether this human is sleeping or not.Fields inherited from class net.glowstone.entity.GlowLivingEntity
deathTicks, health, maxHealth, movement, speed, taskManager
Fields inherited from class net.glowstone.entity.GlowEntity
active, airDrag, applyDragBeforeAccel, boundingBox, ENTITY_ID_NOBODY, entityId, gravityAccel, liquidDrag, location, metadata, passengerChanged, previousLocation, removed, server, slipMultiplier, teleported, ticksLived, vehicle, velocity, velocityChanged, world, worldLock
-
Constructor Summary
ConstructorDescriptionGlowHumanEntity
(org.bukkit.Location location, GlowPlayerProfile profile) Creates a human within the specified world and with the specified name. -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.permissions.PermissionAttachment
addAttachment
(org.bukkit.plugin.Plugin plugin) org.bukkit.permissions.PermissionAttachment
addAttachment
(org.bukkit.plugin.Plugin plugin, int ticks) org.bukkit.permissions.PermissionAttachment
addAttachment
(org.bukkit.plugin.Plugin plugin, String name, boolean value) org.bukkit.permissions.PermissionAttachment
addAttachment
(org.bukkit.plugin.Plugin plugin, String name, boolean value, int ticks) boolean
canTakeDamage
(org.bukkit.event.entity.EntityDamageEvent.DamageCause damageCause) Get whether this entity should take damage from the specified source.void
void
closeInventory
(org.bukkit.event.inventory.InventoryCloseEvent.Reason reason) List<com.flowpowered.network.Message>
Creates a list ofMessage
s which can be sent to a client to spawn this entity.drop
(org.bukkit.inventory.ItemStack stack) Spawns a newGlowItem
in the world, as if this HumanEntity had dropped it.void
dropItemInHand
(boolean wholeStack) Drops the item this entity currently has in its hands and remove the item from the HumanEntity's inventory.Set<org.bukkit.permissions.PermissionAttachmentInfo>
The ender chest inventory of this human.org.bukkit.inventory.EntityEquipment
int
org.bukkit.GameMode
The player's active game mode.The inventory of this human.org.bukkit.inventory.ItemStack
org.bukkit.inventory.ItemStack
The item the player has on their cursor.getName()
org.bukkit.inventory.InventoryView
The player's currently open inventory.The player profile with name and UUID information.org.bukkit.entity.Entity
org.bukkit.entity.Entity
int
How long this human has been sleeping.int
The player's xpSeed.boolean
hasPermission
(String name) boolean
hasPermission
(org.bukkit.permissions.Permission perm) boolean
boolean
isOp()
Whether this human is considered an op.boolean
isPermissionSet
(String name) boolean
isPermissionSet
(org.bukkit.permissions.Permission perm) boolean
Whether this human is sleeping or not.org.bukkit.inventory.InventoryView
openEnchanting
(org.bukkit.Location location, boolean force) org.bukkit.inventory.InventoryView
openInventory
(org.bukkit.inventory.Inventory inventory) void
openInventory
(org.bukkit.inventory.InventoryView inventory) void
openSign
(org.bukkit.block.Sign sign) org.bukkit.inventory.InventoryView
openWorkbench
(org.bukkit.Location location, boolean force) void
pulse()
Called every game cycle.void
org.bukkit.entity.Entity
org.bukkit.entity.Entity
void
removeAttachment
(org.bukkit.permissions.PermissionAttachment attachment) void
setFireTicks
(int ticks) How long the entity has been on fire, or 0 if it is not.void
setGameMode
(org.bukkit.GameMode gameMode) The player's active game mode.void
setItemInHand
(org.bukkit.inventory.ItemStack item) void
setItemOnCursor
(org.bukkit.inventory.ItemStack itemOnCursor) The item the player has on their cursor.void
void
setOp
(boolean value) Whether this entity has operator permissions.void
void
setShoulderEntityLeft
(org.bukkit.entity.Entity entity) void
setShoulderEntityRight
(org.bukkit.entity.Entity entity) void
setUniqueId
(UUID uuid) Sets this entity's unique identifier if possible.boolean
setWindowProperty
(org.bukkit.inventory.InventoryView.Property prop, int value) void
setXpSeed
(int xpSeed) The player's xpSeed.Methods inherited from class net.glowstone.entity.GlowLivingEntity
addPotionEffect, addPotionEffect, addPotionEffects, attack, clearActiveItem, clearActivePotionEffects, createUpdateMessage, damage, entityInteract, getAbsorptionAmount, getActiveItem, getActivePotionEffects, getAmbientDelay, getAmbientSound, getArrowCooldown, getArrowsInBody, getArrowsStuck, getAttribute, getAttributeManager, getCanPickupItems, getCategory, getCollidableExemptions, getDeathSound, getDeathTicks, getEquipmentMonitor, getEyeHeight, getEyeHeight, getEyeLocation, getHandRaisedTime, getHeadYaw, getHealth, getHurtDirection, getHurtSound, getItemUseRemainingTime, getKiller, getLastDamage, getLastDamager, getLastTwoTargetBlocks, getLineOfSight, getMaxHealth, getMaximumAir, getMaximumNoDamageTicks, getMemory, getMovement, getNoDamageTicks, getPlayerDamageTick, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getShieldBlockingDelay, getSoundPitch, getSoundVolume, getSpeed, getState, getTargetBlock, getTargetBlock, getTargetBlockExact, getTargetBlockExact, getTargetBlockFace, getTargetBlockInfo, getTargetEntity, getTargetEntityInfo, getTaskManager, getVelocityFromMovement, hasAI, hasLineOfSight, hasPotionEffect, isArthropod, isCollidable, isFallFlying, isGliding, isHandRaised, isInvisible, isJumping, isRiptiding, isSwimming, isUndead, isWithinSolidBlock, jump, launchProjectile, launchProjectile, launchProjectile, launchProjectile, playAnimation, playPickupItemAnimation, pulsePhysics, rayTraceBlocks, rayTraceBlocks, registerAttribute, removePotionEffect, reset, resetMaxHealth, setAbsorptionAmount, setAI, setArrowCooldown, setArrowsInBody, setArrowsStuck, setCanPickupItems, setCollidable, setFallFlying, setGliding, setHeadYaw, setHealth, setHurtDirection, setInvisible, setJumping, setKiller, setLastDamage, setLastDamager, setMaxHealth, setMaximumAir, setMaximumNoDamageTicks, setMemory, setMovement, setNoDamageTicks, setOnGround, setPlayerDamageTick, setRemainingAir, setRemoveWhenFarAway, setShieldBlockingDelay, setSpeed, setState, setSwimming, swingMainHand, swingOffHand, tryUseTotem, updatePotionEffectsMetadata
Methods inherited from class net.glowstone.entity.GlowEntity
addPassenger, addScoreboardTag, collide, createAfterSpawnMessage, customName, customName, damage, damage, damage, eject, equals, fromMobSpawner, getBoundingBox, getCardinalFacing, getChunk, getCustomName, getCustomTags, getDismountLocation, getEntityId, getEntitySpawnReason, getFacing, getFallDistance, getFireTicks, getGravityAccel, getHeight, getLastDamageCause, getLeashedEntities, getLeashHolder, getLocation, getLocation, getMaxFireTicks, getMetadata, getMetadata, getMountLocation, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPersistentDataContainer, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getTicksLived, getType, getVehicle, getVelocity, getWidth, getWorld, hasDefaultLandingBehavior, hasFriction, hasGravity, hashCode, hasMetadata, hasMoved, hasRotated, intersects, isCustomNameVisible, isDead, isEmpty, isGlowing, isInBubbleColumn, isInLava, isInMaterial, isInRain, isInsideVehicle, isInvulnerable, isInWater, isInWaterOrBubbleColumn, isInWaterOrRain, isInWaterOrRainOrBubbleColumn, isLeashed, isOnGround, isPersistent, isRemoved, isSilent, isTeleported, isTicking, isTouchingMaterial, isValid, isWithinDistance, isWithinDistance, leaveVehicle, playEffect, playEffectKnownAndSelf, remove, removeMetadata, removePassenger, removeScoreboardTag, sendMessage, sendMessage, sendMessage, sendMessage, setAirDrag, setApplyDragBeforeAccel, setBoundingBox, setCustomName, setCustomNameVisible, setFallDistance, setFriction, setGlowing, setGravity, setGravityAccel, setInvulnerable, setLastDamageCause, setLeashHolder, setLeashHolderUniqueId, setLiquidDrag, setMetadata, setPassenger, setPersistent, setPortalCooldown, setRawLocation, setRawLocation, setRotation, setSilent, setSize, setTicksLived, setVelocity, shouldSave, spigot, teleport, teleport, teleport, teleport, teleportToEnd, teleportToSpawn, toString, updateBoundingBox
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.bukkit.attribute.Attributable
getAttribute, registerAttribute
Methods inherited from interface net.kyori.adventure.audience.Audience
clearTitle, hideBossBar, openBook, openBook, playSound, playSound, resetTitle, sendActionBar, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeader, sendPlayerListHeaderAndFooter, sendPlayerListHeaderAndFooter, showBossBar, showTitle, stopSound
Methods inherited from interface org.bukkit.command.CommandSender
sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage
Methods inherited from interface org.bukkit.entity.Damageable
damage, damage, damage, damage, getAbsorptionAmount, getHealth, getMaxHealth, resetMaxHealth, setAbsorptionAmount, setHealth, setMaxHealth
Methods inherited from interface org.bukkit.entity.Entity
addPassenger, addScoreboardTag, asHoverEvent, eject, fromMobSpawner, getBoundingBox, getChunk, getEntityId, getEntitySpawnReason, getFacing, getFallDistance, getFireTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getTicksLived, getType, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isGlowing, isInBubbleColumn, isInLava, isInRain, isInsideVehicle, isInvulnerable, isInWater, isInWaterOrBubbleColumn, isInWaterOrRain, isInWaterOrRainOrBubbleColumn, isOnGround, isPersistent, isSilent, isTicking, isValid, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setRotation, setSilent, setTicksLived, setVelocity, spigot, teleport, teleport, teleport, teleport, teleportAsync, teleportAsync
Methods inherited from interface net.kyori.adventure.text.event.HoverEventSource
asHoverEvent
Methods inherited from interface org.bukkit.entity.HumanEntity
discoverRecipe, discoverRecipes, dropItem, getAttackCooldown, getBedLocation, getCooldown, getDiscoveredRecipes, getExhaustion, getFoodLevel, getMainHand, getPotentialBedLocation, getSaturatedRegenRate, getSaturation, getStarvationRate, getUnsaturatedRegenRate, hasCooldown, hasDiscoveredRecipe, isDeeplySleeping, isHandRaised, openAnvil, openCartographyTable, openGrindstone, openLoom, openMerchant, openMerchant, openSmithingTable, openStonecutter, setCooldown, setExhaustion, setFoodLevel, setSaturatedRegenRate, setSaturation, setStarvationRate, setUnsaturatedRegenRate, sleep, undiscoverRecipe, undiscoverRecipes, wakeup
Methods inherited from interface org.bukkit.entity.LivingEntity
addPotionEffect, addPotionEffect, addPotionEffects, attack, clearActiveItem, getActiveItem, getActivePotionEffects, getArrowCooldown, getArrowsInBody, getArrowsStuck, getCanPickupItems, getCategory, getCollidableExemptions, getEyeHeight, getEyeHeight, getEyeLocation, getHandRaisedTime, getHurtDirection, getItemUseRemainingTime, getKiller, getLastDamage, getLastTwoTargetBlocks, getLeashHolder, getLineOfSight, getMaximumAir, getMaximumNoDamageTicks, getMemory, getNoDamageTicks, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getShieldBlockingDelay, getTargetBlock, getTargetBlock, getTargetBlock, getTargetBlockExact, getTargetBlockExact, getTargetBlockFace, getTargetBlockFace, getTargetBlockInfo, getTargetBlockInfo, getTargetEntity, getTargetEntity, getTargetEntityInfo, getTargetEntityInfo, hasAI, hasLineOfSight, hasPotionEffect, isCollidable, isGliding, isInvisible, isJumping, isLeashed, isRiptiding, isSwimming, playAnimation, playPickupItemAnimation, playPickupItemAnimation, rayTraceBlocks, rayTraceBlocks, removePotionEffect, setAI, setArrowCooldown, setArrowsInBody, setArrowsStuck, setCanPickupItems, setCollidable, setGliding, setHurtDirection, setInvisible, setJumping, setKiller, setLastDamage, setLeashHolder, setMaximumAir, setMaximumNoDamageTicks, setMemory, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway, setShieldBlockingDelay, setSwimming, swingMainHand, swingOffHand
Methods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
Methods inherited from interface org.bukkit.Nameable
customName, customName, getCustomName, setCustomName
Methods inherited from interface org.bukkit.persistence.PersistentDataHolder
getPersistentDataContainer
Methods inherited from interface org.bukkit.projectiles.ProjectileSource
launchProjectile, launchProjectile
-
Field Details
-
sleeping
protected boolean sleepingWhether this human is sleeping or not. -
permissions
protected org.bukkit.permissions.PermissibleBase permissionsThis human's PermissibleBase for permissions.
-
-
Constructor Details
-
GlowHumanEntity
Creates a human within the specified world and with the specified name.- Parameters:
location
- The location.profile
- The human's profile with name and UUID information.
-
-
Method Details
-
createSpawnMessage
Description copied from class:GlowEntity
Creates a list ofMessage
s which can be sent to a client to spawn this entity. Implementations in concrete subclasses may return a shallowly immutable list.- Specified by:
createSpawnMessage
in classGlowEntity
- Returns:
- A list of messages which can spawn this entity.
-
pulse
public void pulse()Description copied from class:GlowEntity
Called every game cycle. Subclasses should implement this to implement periodic functionality e.g. mob AI.- Overrides:
pulse
in classGlowLivingEntity
-
getName
- Specified by:
getName
in interfaceorg.bukkit.entity.AnimalTamer
- Specified by:
getName
in interfaceorg.bukkit.command.CommandSender
- Specified by:
getName
in interfaceorg.bukkit.entity.HumanEntity
- Overrides:
getName
in classGlowEntity
-
getUniqueId
- Specified by:
getUniqueId
in interfaceorg.bukkit.entity.AnimalTamer
- Specified by:
getUniqueId
in interfaceorg.bukkit.entity.Entity
- Overrides:
getUniqueId
in classGlowEntity
-
setUniqueId
Description copied from class:GlowEntity
Sets this entity's unique identifier if possible.- Overrides:
setUniqueId
in classGlowEntity
- Parameters:
uuid
- The new UUID. Must not be null.
-
isBlocking
public boolean isBlocking()- Specified by:
isBlocking
in interfaceorg.bukkit.entity.HumanEntity
-
getExpToLevel
public int getExpToLevel()- Specified by:
getExpToLevel
in interfaceorg.bukkit.entity.HumanEntity
-
getEquipment
public org.bukkit.inventory.EntityEquipment getEquipment()- Specified by:
getEquipment
in interfaceorg.bukkit.entity.LivingEntity
- Overrides:
getEquipment
in classGlowLivingEntity
-
setFireTicks
public void setFireTicks(int ticks) Description copied from class:GlowEntity
How long the entity has been on fire, or 0 if it is not.- Specified by:
setFireTicks
in interfaceorg.bukkit.entity.Entity
- Overrides:
setFireTicks
in classGlowEntity
-
isPermissionSet
- Specified by:
isPermissionSet
in interfaceorg.bukkit.permissions.Permissible
- Overrides:
isPermissionSet
in classGlowEntity
-
isPermissionSet
public boolean isPermissionSet(org.bukkit.permissions.Permission perm) - Specified by:
isPermissionSet
in interfaceorg.bukkit.permissions.Permissible
- Overrides:
isPermissionSet
in classGlowEntity
-
hasPermission
- Specified by:
hasPermission
in interfaceorg.bukkit.permissions.Permissible
- Overrides:
hasPermission
in classGlowEntity
-
hasPermission
public boolean hasPermission(org.bukkit.permissions.Permission perm) - Specified by:
hasPermission
in interfaceorg.bukkit.permissions.Permissible
- Overrides:
hasPermission
in classGlowEntity
-
addAttachment
public org.bukkit.permissions.PermissionAttachment addAttachment(org.bukkit.plugin.Plugin plugin) - Specified by:
addAttachment
in interfaceorg.bukkit.permissions.Permissible
- Overrides:
addAttachment
in classGlowEntity
-
addAttachment
public org.bukkit.permissions.PermissionAttachment addAttachment(org.bukkit.plugin.Plugin plugin, int ticks) - Specified by:
addAttachment
in interfaceorg.bukkit.permissions.Permissible
- Overrides:
addAttachment
in classGlowEntity
-
addAttachment
public org.bukkit.permissions.PermissionAttachment addAttachment(org.bukkit.plugin.Plugin plugin, String name, boolean value) - Specified by:
addAttachment
in interfaceorg.bukkit.permissions.Permissible
- Overrides:
addAttachment
in classGlowEntity
-
addAttachment
public org.bukkit.permissions.PermissionAttachment addAttachment(org.bukkit.plugin.Plugin plugin, String name, boolean value, int ticks) - Specified by:
addAttachment
in interfaceorg.bukkit.permissions.Permissible
- Overrides:
addAttachment
in classGlowEntity
-
removeAttachment
public void removeAttachment(org.bukkit.permissions.PermissionAttachment attachment) - Specified by:
removeAttachment
in interfaceorg.bukkit.permissions.Permissible
- Overrides:
removeAttachment
in classGlowEntity
-
recalculatePermissions
public void recalculatePermissions()- Specified by:
recalculatePermissions
in interfaceorg.bukkit.permissions.Permissible
- Overrides:
recalculatePermissions
in classGlowEntity
-
getEffectivePermissions
- Specified by:
getEffectivePermissions
in interfaceorg.bukkit.permissions.Permissible
- Overrides:
getEffectivePermissions
in classGlowEntity
-
setOp
public void setOp(boolean value) Description copied from class:GlowEntity
Whether this entity has operator permissions.- Specified by:
setOp
in interfaceorg.bukkit.permissions.ServerOperator
- Overrides:
setOp
in classGlowEntity
-
canTakeDamage
public boolean canTakeDamage(org.bukkit.event.entity.EntityDamageEvent.DamageCause damageCause) Description copied from class:GlowLivingEntity
Get whether this entity should take damage from the specified source.Usually used to check environmental sources such as drowning.
- Overrides:
canTakeDamage
in classGlowLivingEntity
- Parameters:
damageCause
- the damage source to check- Returns:
- whether this entity can take damage from the source
-
getItemInHand
public org.bukkit.inventory.ItemStack getItemInHand()- Specified by:
getItemInHand
in interfaceorg.bukkit.entity.HumanEntity
-
setItemInHand
public void setItemInHand(org.bukkit.inventory.ItemStack item) - Specified by:
setItemInHand
in interfaceorg.bukkit.entity.HumanEntity
-
setWindowProperty
public boolean setWindowProperty(org.bukkit.inventory.InventoryView.Property prop, int value) - Specified by:
setWindowProperty
in interfaceorg.bukkit.entity.HumanEntity
-
openInventory
public org.bukkit.inventory.InventoryView openInventory(org.bukkit.inventory.Inventory inventory) - Specified by:
openInventory
in interfaceorg.bukkit.entity.HumanEntity
-
openInventory
public void openInventory(org.bukkit.inventory.InventoryView inventory) - Specified by:
openInventory
in interfaceorg.bukkit.entity.HumanEntity
-
openWorkbench
public org.bukkit.inventory.InventoryView openWorkbench(org.bukkit.Location location, boolean force) - Specified by:
openWorkbench
in interfaceorg.bukkit.entity.HumanEntity
-
openEnchanting
public org.bukkit.inventory.InventoryView openEnchanting(org.bukkit.Location location, boolean force) - Specified by:
openEnchanting
in interfaceorg.bukkit.entity.HumanEntity
-
closeInventory
public void closeInventory()- Specified by:
closeInventory
in interfaceorg.bukkit.entity.HumanEntity
-
closeInventory
public void closeInventory(org.bukkit.event.inventory.InventoryCloseEvent.Reason reason) - Specified by:
closeInventory
in interfaceorg.bukkit.entity.HumanEntity
-
dropItemInHand
public void dropItemInHand(boolean wholeStack) Drops the item this entity currently has in its hands and remove the item from the HumanEntity's inventory.- Parameters:
wholeStack
- True if the whole stack should be dropped
-
drop
Spawns a newGlowItem
in the world, as if this HumanEntity had dropped it.Note that this does NOT remove the item from the inventory.
- Parameters:
stack
- The item to drop- Returns:
- the GlowItem that was generated, or null if the spawning was cancelled
- Throws:
IllegalArgumentException
- if the stack is empty
-
getShoulderEntityLeft
public org.bukkit.entity.Entity getShoulderEntityLeft()- Specified by:
getShoulderEntityLeft
in interfaceorg.bukkit.entity.HumanEntity
-
setShoulderEntityLeft
public void setShoulderEntityLeft(org.bukkit.entity.Entity entity) - Specified by:
setShoulderEntityLeft
in interfaceorg.bukkit.entity.HumanEntity
-
getShoulderEntityRight
public org.bukkit.entity.Entity getShoulderEntityRight()- Specified by:
getShoulderEntityRight
in interfaceorg.bukkit.entity.HumanEntity
-
setShoulderEntityRight
public void setShoulderEntityRight(org.bukkit.entity.Entity entity) - Specified by:
setShoulderEntityRight
in interfaceorg.bukkit.entity.HumanEntity
-
releaseLeftShoulderEntity
public org.bukkit.entity.Entity releaseLeftShoulderEntity()- Specified by:
releaseLeftShoulderEntity
in interfaceorg.bukkit.entity.HumanEntity
-
releaseRightShoulderEntity
public org.bukkit.entity.Entity releaseRightShoulderEntity()- Specified by:
releaseRightShoulderEntity
in interfaceorg.bukkit.entity.HumanEntity
-
getLeftShoulderTag
-
setLeftShoulderTag
-
getRightShoulderTag
-
setRightShoulderTag
-
openSign
public void openSign(org.bukkit.block.Sign sign) - Specified by:
openSign
in interfaceorg.bukkit.entity.HumanEntity
-
getProfile
The player profile with name and UUID information. -
getInventory
The inventory of this human.- Specified by:
getInventory
in interfaceorg.bukkit.entity.HumanEntity
- Specified by:
getInventory
in interfaceorg.bukkit.inventory.InventoryHolder
-
getEnderChest
The ender chest inventory of this human.- Specified by:
getEnderChest
in interfaceorg.bukkit.entity.HumanEntity
-
isSleeping
public boolean isSleeping()Whether this human is sleeping or not.- Specified by:
isSleeping
in interfaceorg.bukkit.entity.LivingEntity
- Overrides:
isSleeping
in classGlowLivingEntity
-
getItemOnCursor
public org.bukkit.inventory.ItemStack getItemOnCursor()The item the player has on their cursor.- Specified by:
getItemOnCursor
in interfaceorg.bukkit.entity.HumanEntity
-
setItemOnCursor
public void setItemOnCursor(org.bukkit.inventory.ItemStack itemOnCursor) The item the player has on their cursor.- Specified by:
setItemOnCursor
in interfaceorg.bukkit.entity.HumanEntity
-
getSleepTicks
public int getSleepTicks()How long this human has been sleeping.- Specified by:
getSleepTicks
in interfaceorg.bukkit.entity.HumanEntity
-
isOp
public boolean isOp()Whether this human is considered an op.- Specified by:
isOp
in interfaceorg.bukkit.permissions.ServerOperator
- Overrides:
isOp
in classGlowEntity
-
getGameMode
public org.bukkit.GameMode getGameMode()The player's active game mode.- Specified by:
getGameMode
in interfaceorg.bukkit.entity.HumanEntity
-
setGameMode
public void setGameMode(org.bukkit.GameMode gameMode) The player's active game mode.- Specified by:
setGameMode
in interfaceorg.bukkit.entity.HumanEntity
-
getOpenInventory
public org.bukkit.inventory.InventoryView getOpenInventory()The player's currently open inventory.- Specified by:
getOpenInventory
in interfaceorg.bukkit.entity.HumanEntity
-
getXpSeed
public int getXpSeed()The player's xpSeed. Used for calculation of enchantments. -
setXpSeed
public void setXpSeed(int xpSeed) The player's xpSeed. Used for calculation of enchantments.
-