public abstract class GlowHumanEntity extends GlowLivingEntity implements org.bukkit.entity.HumanEntity
Modifier and Type | Field and Description |
---|---|
protected org.bukkit.permissions.PermissibleBase |
permissions
This human's PermissibleBase for permissions.
|
protected boolean |
sleeping
Whether this human is sleeping or not.
|
deathTicks, health, maxHealth, movement, speed, taskManager
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 and Description |
---|
GlowHumanEntity(org.bukkit.Location location,
GlowPlayerProfile profile)
Creates a human within the specified world and with the specified name.
|
Modifier and Type | Method and Description |
---|---|
org.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 |
closeInventory() |
void |
closeInventory(org.bukkit.event.inventory.InventoryCloseEvent.Reason reason) |
List<com.flowpowered.network.Message> |
createSpawnMessage()
Creates a list of
Message s which can be sent to a client to spawn this entity. |
GlowItem |
drop(org.bukkit.inventory.ItemStack stack)
Spawns a new
GlowItem 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> |
getEffectivePermissions() |
GlowInventory |
getEnderChest()
The ender chest inventory of this human.
|
org.bukkit.inventory.EntityEquipment |
getEquipment() |
int |
getExpToLevel() |
org.bukkit.GameMode |
getGameMode()
The player's active game mode.
|
GlowPlayerInventory |
getInventory()
The inventory of this human.
|
org.bukkit.inventory.ItemStack |
getItemInHand() |
org.bukkit.inventory.ItemStack |
getItemOnCursor()
The item the player has on their cursor.
|
CompoundTag |
getLeftShoulderTag() |
String |
getName() |
org.bukkit.inventory.InventoryView |
getOpenInventory()
The player's currently open inventory.
|
GlowPlayerProfile |
getProfile()
The player profile with name and UUID information.
|
CompoundTag |
getRightShoulderTag() |
org.bukkit.entity.Entity |
getShoulderEntityLeft() |
org.bukkit.entity.Entity |
getShoulderEntityRight() |
int |
getSleepTicks()
How long this human has been sleeping.
|
UUID |
getUniqueId() |
int |
getXpSeed()
The player's xpSeed.
|
boolean |
hasPermission(org.bukkit.permissions.Permission perm) |
boolean |
hasPermission(String name) |
boolean |
isBlocking() |
boolean |
isOp()
Whether this human is considered an op.
|
boolean |
isPermissionSet(org.bukkit.permissions.Permission perm) |
boolean |
isPermissionSet(String name) |
boolean |
isSleeping()
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 |
recalculatePermissions() |
org.bukkit.entity.Entity |
releaseLeftShoulderEntity() |
org.bukkit.entity.Entity |
releaseRightShoulderEntity() |
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 |
setLeftShoulderTag(CompoundTag tag) |
void |
setOp(boolean value)
Whether this entity has operator permissions.
|
void |
setRightShoulderTag(CompoundTag tag) |
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.
|
addPotionEffect, addPotionEffect, addPotionEffects, clearActivePotionEffects, createUpdateMessage, damage, entityInteract, getActiveItem, getActivePotionEffects, getAmbientDelay, getAmbientSound, getArrowsStuck, getAttribute, getAttributeManager, getCanPickupItems, getDeathSound, getDeathTicks, getEquipmentMonitor, getEyeHeight, getEyeHeight, getEyeLocation, getHandRaisedTime, getHeadYaw, getHealth, getHurtSound, getItemUseRemainingTime, getKiller, getLastDamage, getLastDamager, getLastTwoTargetBlocks, getLastTwoTargetBlocks, getLineOfSight, getMaxHealth, getMaximumAir, getMaximumNoDamageTicks, getMovement, getNoDamageTicks, getPlayerDamageTick, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getShieldBlockingDelay, getSoundPitch, getSoundVolume, getSpeed, getState, getTargetBlock, getTargetBlock, getTaskManager, getVelocityFromMovement, hasAI, hasLineOfSight, hasPotionEffect, isArthropod, isCollidable, isFallFlying, isGliding, isHandRaised, isUndead, isWithinSolidBlock, jump, launchProjectile, launchProjectile, launchProjectile, launchProjectile, playAnimation, pulsePhysics, removePotionEffect, reset, resetMaxHealth, setAI, setArrowsStuck, setCanPickupItems, setCollidable, setFallFlying, setGliding, setHeadYaw, setHealth, setKiller, setLastDamage, setLastDamager, setMaxHealth, setMaximumAir, setMaximumNoDamageTicks, setMovement, setNoDamageTicks, setOnGround, setPlayerDamageTick, setRemainingAir, setRemoveWhenFarAway, setShieldBlockingDelay, setSpeed, setState, tryUseTotem, updatePotionEffectsMetadata
addPassenger, addScoreboardTag, collide, createAfterSpawnMessage, damage, damage, damage, eject, equals, fromMobSpawner, getCardinalFacing, getChunk, getCustomName, getCustomTags, getDismountLocation, getEntityId, getFacing, getFallDistance, getFireTicks, getGravityAccel, getHeight, getLastDamageCause, getLeashedEntities, getLeashHolder, getLocation, getLocation, getMaxFireTicks, getMetadata, getMetadata, getMountLocation, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getScoreboardTags, getServer, getTicksLived, getType, getVehicle, getVelocity, getWidth, getWorld, hasDefaultLandingBehavior, hasFriction, hasGravity, hashCode, hasMetadata, hasMoved, hasRotated, intersects, isCustomNameVisible, isDead, isEmpty, isGlowing, isInsideVehicle, isInvulnerable, isLeashed, isOnGround, isRemoved, isSilent, isTeleported, isTouchingMaterial, isValid, isWithinDistance, isWithinDistance, leaveVehicle, playEffect, playEffectKnownAndSelf, remove, removeMetadata, removePassenger, removeScoreboardTag, sendMessage, sendMessage, setAirDrag, setApplyDragBeforeAccel, setBoundingBox, setCustomName, setCustomNameVisible, setFallDistance, setFriction, setGlowing, setGravity, setGravityAccel, setInvulnerable, setLastDamageCause, setLeashHolder, setLeashHolderUniqueId, setLiquidDrag, setMetadata, setPassenger, setPortalCooldown, setRawLocation, setRawLocation, setSilent, setSize, setTicksLived, setVelocity, shouldSave, spigot, teleport, teleport, teleport, teleport, teleportToEnd, teleportToSpawn, toString, updateBoundingBox
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getCooldown, getMainHand, hasCooldown, isHandRaised, openMerchant, openMerchant, setCooldown
addPotionEffect, addPotionEffect, addPotionEffects, getActiveItem, getActivePotionEffects, getArrowsStuck, getCanPickupItems, getEyeHeight, getEyeHeight, getEyeLocation, getHandRaisedTime, getItemUseRemainingTime, getKiller, getLastDamage, getLastTwoTargetBlocks, getLeashHolder, getLineOfSight, getMaximumAir, getMaximumNoDamageTicks, getNoDamageTicks, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getShieldBlockingDelay, getTargetBlock, hasAI, hasLineOfSight, hasPotionEffect, isCollidable, isGliding, isLeashed, playAnimation, removePotionEffect, setAI, setArrowsStuck, setCanPickupItems, setCollidable, setGliding, setKiller, setLastDamage, setLeashHolder, setMaximumAir, setMaximumNoDamageTicks, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway, setShieldBlockingDelay
damage, damage, damage, damage, getHealth, getMaxHealth, resetMaxHealth, setHealth, setMaxHealth
addPassenger, addScoreboardTag, eject, fromMobSpawner, getChunk, getEntityId, getFallDistance, getFireTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getScoreboardTags, getServer, getTicksLived, getType, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isGlowing, isInsideVehicle, isInvulnerable, isOnGround, isSilent, isValid, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPortalCooldown, setSilent, setTicksLived, setVelocity, spigot, teleport, teleport, teleport, teleport
getMetadata, hasMetadata, removeMetadata, setMetadata
protected boolean sleeping
protected org.bukkit.permissions.PermissibleBase permissions
public GlowHumanEntity(org.bukkit.Location location, GlowPlayerProfile profile)
location
- The location.profile
- The human's profile with name and UUID information.public List<com.flowpowered.network.Message> createSpawnMessage()
GlowEntity
Message
s which can be sent to a client to spawn this entity.
Implementations in concrete subclasses may return a shallowly immutable list.createSpawnMessage
in class GlowEntity
public void pulse()
GlowEntity
pulse
in class GlowLivingEntity
public String getName()
getName
in interface org.bukkit.command.CommandSender
getName
in interface org.bukkit.entity.AnimalTamer
getName
in interface org.bukkit.entity.HumanEntity
getName
in class GlowEntity
public UUID getUniqueId()
getUniqueId
in interface org.bukkit.entity.AnimalTamer
getUniqueId
in interface org.bukkit.entity.Entity
getUniqueId
in class GlowEntity
public void setUniqueId(UUID uuid)
GlowEntity
setUniqueId
in class GlowEntity
uuid
- The new UUID. Must not be null.public boolean isBlocking()
isBlocking
in interface org.bukkit.entity.HumanEntity
public int getExpToLevel()
getExpToLevel
in interface org.bukkit.entity.HumanEntity
public org.bukkit.inventory.EntityEquipment getEquipment()
getEquipment
in interface org.bukkit.entity.LivingEntity
getEquipment
in class GlowLivingEntity
public void setFireTicks(int ticks)
GlowEntity
setFireTicks
in interface org.bukkit.entity.Entity
setFireTicks
in class GlowEntity
public boolean isPermissionSet(String name)
isPermissionSet
in interface org.bukkit.permissions.Permissible
isPermissionSet
in class GlowEntity
public boolean isPermissionSet(org.bukkit.permissions.Permission perm)
isPermissionSet
in interface org.bukkit.permissions.Permissible
isPermissionSet
in class GlowEntity
public boolean hasPermission(String name)
hasPermission
in interface org.bukkit.permissions.Permissible
hasPermission
in class GlowEntity
public boolean hasPermission(org.bukkit.permissions.Permission perm)
hasPermission
in interface org.bukkit.permissions.Permissible
hasPermission
in class GlowEntity
public org.bukkit.permissions.PermissionAttachment addAttachment(org.bukkit.plugin.Plugin plugin)
addAttachment
in interface org.bukkit.permissions.Permissible
addAttachment
in class GlowEntity
public org.bukkit.permissions.PermissionAttachment addAttachment(org.bukkit.plugin.Plugin plugin, int ticks)
addAttachment
in interface org.bukkit.permissions.Permissible
addAttachment
in class GlowEntity
public org.bukkit.permissions.PermissionAttachment addAttachment(org.bukkit.plugin.Plugin plugin, String name, boolean value)
addAttachment
in interface org.bukkit.permissions.Permissible
addAttachment
in class GlowEntity
public org.bukkit.permissions.PermissionAttachment addAttachment(org.bukkit.plugin.Plugin plugin, String name, boolean value, int ticks)
addAttachment
in interface org.bukkit.permissions.Permissible
addAttachment
in class GlowEntity
public void removeAttachment(org.bukkit.permissions.PermissionAttachment attachment)
removeAttachment
in interface org.bukkit.permissions.Permissible
removeAttachment
in class GlowEntity
public void recalculatePermissions()
recalculatePermissions
in interface org.bukkit.permissions.Permissible
recalculatePermissions
in class GlowEntity
public Set<org.bukkit.permissions.PermissionAttachmentInfo> getEffectivePermissions()
getEffectivePermissions
in interface org.bukkit.permissions.Permissible
getEffectivePermissions
in class GlowEntity
public void setOp(boolean value)
GlowEntity
setOp
in interface org.bukkit.permissions.ServerOperator
setOp
in class GlowEntity
public boolean canTakeDamage(org.bukkit.event.entity.EntityDamageEvent.DamageCause damageCause)
GlowLivingEntity
Usually used to check environmental sources such as drowning.
canTakeDamage
in class GlowLivingEntity
damageCause
- the damage source to checkpublic org.bukkit.inventory.ItemStack getItemInHand()
getItemInHand
in interface org.bukkit.entity.HumanEntity
public void setItemInHand(org.bukkit.inventory.ItemStack item)
setItemInHand
in interface org.bukkit.entity.HumanEntity
public boolean setWindowProperty(org.bukkit.inventory.InventoryView.Property prop, int value)
setWindowProperty
in interface org.bukkit.entity.HumanEntity
public org.bukkit.inventory.InventoryView openInventory(org.bukkit.inventory.Inventory inventory)
openInventory
in interface org.bukkit.entity.HumanEntity
public void openInventory(org.bukkit.inventory.InventoryView inventory)
openInventory
in interface org.bukkit.entity.HumanEntity
public org.bukkit.inventory.InventoryView openWorkbench(org.bukkit.Location location, boolean force)
openWorkbench
in interface org.bukkit.entity.HumanEntity
public org.bukkit.inventory.InventoryView openEnchanting(org.bukkit.Location location, boolean force)
openEnchanting
in interface org.bukkit.entity.HumanEntity
public void closeInventory()
closeInventory
in interface org.bukkit.entity.HumanEntity
public void closeInventory(org.bukkit.event.inventory.InventoryCloseEvent.Reason reason)
closeInventory
in interface org.bukkit.entity.HumanEntity
public void dropItemInHand(boolean wholeStack)
wholeStack
- True if the whole stack should be droppedpublic GlowItem drop(org.bukkit.inventory.ItemStack stack)
GlowItem
in the world, as if this HumanEntity had dropped it.
Note that this does NOT remove the item from the inventory.
stack
- The item to dropIllegalArgumentException
- if the stack is emptypublic org.bukkit.entity.Entity getShoulderEntityLeft()
getShoulderEntityLeft
in interface org.bukkit.entity.HumanEntity
public void setShoulderEntityLeft(org.bukkit.entity.Entity entity)
setShoulderEntityLeft
in interface org.bukkit.entity.HumanEntity
public org.bukkit.entity.Entity getShoulderEntityRight()
getShoulderEntityRight
in interface org.bukkit.entity.HumanEntity
public void setShoulderEntityRight(org.bukkit.entity.Entity entity)
setShoulderEntityRight
in interface org.bukkit.entity.HumanEntity
public org.bukkit.entity.Entity releaseLeftShoulderEntity()
releaseLeftShoulderEntity
in interface org.bukkit.entity.HumanEntity
public org.bukkit.entity.Entity releaseRightShoulderEntity()
releaseRightShoulderEntity
in interface org.bukkit.entity.HumanEntity
public CompoundTag getLeftShoulderTag()
public void setLeftShoulderTag(CompoundTag tag)
public CompoundTag getRightShoulderTag()
public void setRightShoulderTag(CompoundTag tag)
public void openSign(org.bukkit.block.Sign sign)
openSign
in interface org.bukkit.entity.HumanEntity
public GlowPlayerProfile getProfile()
public GlowPlayerInventory getInventory()
getInventory
in interface org.bukkit.entity.HumanEntity
getInventory
in interface org.bukkit.inventory.InventoryHolder
public GlowInventory getEnderChest()
getEnderChest
in interface org.bukkit.entity.HumanEntity
public boolean isSleeping()
isSleeping
in interface org.bukkit.entity.HumanEntity
public org.bukkit.inventory.ItemStack getItemOnCursor()
getItemOnCursor
in interface org.bukkit.entity.HumanEntity
public void setItemOnCursor(org.bukkit.inventory.ItemStack itemOnCursor)
setItemOnCursor
in interface org.bukkit.entity.HumanEntity
public int getSleepTicks()
getSleepTicks
in interface org.bukkit.entity.HumanEntity
public boolean isOp()
isOp
in interface org.bukkit.permissions.ServerOperator
isOp
in class GlowEntity
public org.bukkit.GameMode getGameMode()
getGameMode
in interface org.bukkit.entity.HumanEntity
public void setGameMode(org.bukkit.GameMode gameMode)
setGameMode
in interface org.bukkit.entity.HumanEntity
public org.bukkit.inventory.InventoryView getOpenInventory()
getOpenInventory
in interface org.bukkit.entity.HumanEntity
public int getXpSeed()
public void setXpSeed(int xpSeed)
Copyright © 2021. All rights reserved.