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, taskManageractive, 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
Messages 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, updatePotionEffectsMetadataaddPassenger, 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, updateBoundingBoxclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetCooldown, getMainHand, hasCooldown, isHandRaised, openMerchant, openMerchant, setCooldownaddPotionEffect, 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, setShieldBlockingDelaydamage, damage, damage, damage, getHealth, getMaxHealth, resetMaxHealth, setHealth, setMaxHealthaddPassenger, 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, teleportgetMetadata, hasMetadata, removeMetadata, setMetadataprotected 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()
GlowEntityMessages which can be sent to a client to spawn this entity.
Implementations in concrete subclasses may return a shallowly immutable list.createSpawnMessage in class GlowEntitypublic void pulse()
GlowEntitypulse in class GlowLivingEntitypublic String getName()
getName in interface org.bukkit.command.CommandSendergetName in interface org.bukkit.entity.AnimalTamergetName in interface org.bukkit.entity.HumanEntitygetName in class GlowEntitypublic UUID getUniqueId()
getUniqueId in interface org.bukkit.entity.AnimalTamergetUniqueId in interface org.bukkit.entity.EntitygetUniqueId in class GlowEntitypublic void setUniqueId(UUID uuid)
GlowEntitysetUniqueId in class GlowEntityuuid - The new UUID. Must not be null.public boolean isBlocking()
isBlocking in interface org.bukkit.entity.HumanEntitypublic int getExpToLevel()
getExpToLevel in interface org.bukkit.entity.HumanEntitypublic org.bukkit.inventory.EntityEquipment getEquipment()
getEquipment in interface org.bukkit.entity.LivingEntitygetEquipment in class GlowLivingEntitypublic void setFireTicks(int ticks)
GlowEntitysetFireTicks in interface org.bukkit.entity.EntitysetFireTicks in class GlowEntitypublic boolean isPermissionSet(String name)
isPermissionSet in interface org.bukkit.permissions.PermissibleisPermissionSet in class GlowEntitypublic boolean isPermissionSet(org.bukkit.permissions.Permission perm)
isPermissionSet in interface org.bukkit.permissions.PermissibleisPermissionSet in class GlowEntitypublic boolean hasPermission(String name)
hasPermission in interface org.bukkit.permissions.PermissiblehasPermission in class GlowEntitypublic boolean hasPermission(org.bukkit.permissions.Permission perm)
hasPermission in interface org.bukkit.permissions.PermissiblehasPermission in class GlowEntitypublic org.bukkit.permissions.PermissionAttachment addAttachment(org.bukkit.plugin.Plugin plugin)
addAttachment in interface org.bukkit.permissions.PermissibleaddAttachment in class GlowEntitypublic org.bukkit.permissions.PermissionAttachment addAttachment(org.bukkit.plugin.Plugin plugin,
int ticks)
addAttachment in interface org.bukkit.permissions.PermissibleaddAttachment in class GlowEntitypublic org.bukkit.permissions.PermissionAttachment addAttachment(org.bukkit.plugin.Plugin plugin,
String name,
boolean value)
addAttachment in interface org.bukkit.permissions.PermissibleaddAttachment in class GlowEntitypublic org.bukkit.permissions.PermissionAttachment addAttachment(org.bukkit.plugin.Plugin plugin,
String name,
boolean value,
int ticks)
addAttachment in interface org.bukkit.permissions.PermissibleaddAttachment in class GlowEntitypublic void removeAttachment(org.bukkit.permissions.PermissionAttachment attachment)
removeAttachment in interface org.bukkit.permissions.PermissibleremoveAttachment in class GlowEntitypublic void recalculatePermissions()
recalculatePermissions in interface org.bukkit.permissions.PermissiblerecalculatePermissions in class GlowEntitypublic Set<org.bukkit.permissions.PermissionAttachmentInfo> getEffectivePermissions()
getEffectivePermissions in interface org.bukkit.permissions.PermissiblegetEffectivePermissions in class GlowEntitypublic void setOp(boolean value)
GlowEntitysetOp in interface org.bukkit.permissions.ServerOperatorsetOp in class GlowEntitypublic boolean canTakeDamage(org.bukkit.event.entity.EntityDamageEvent.DamageCause damageCause)
GlowLivingEntityUsually used to check environmental sources such as drowning.
canTakeDamage in class GlowLivingEntitydamageCause - the damage source to checkpublic org.bukkit.inventory.ItemStack getItemInHand()
getItemInHand in interface org.bukkit.entity.HumanEntitypublic void setItemInHand(org.bukkit.inventory.ItemStack item)
setItemInHand in interface org.bukkit.entity.HumanEntitypublic boolean setWindowProperty(org.bukkit.inventory.InventoryView.Property prop,
int value)
setWindowProperty in interface org.bukkit.entity.HumanEntitypublic org.bukkit.inventory.InventoryView openInventory(org.bukkit.inventory.Inventory inventory)
openInventory in interface org.bukkit.entity.HumanEntitypublic void openInventory(org.bukkit.inventory.InventoryView inventory)
openInventory in interface org.bukkit.entity.HumanEntitypublic org.bukkit.inventory.InventoryView openWorkbench(org.bukkit.Location location,
boolean force)
openWorkbench in interface org.bukkit.entity.HumanEntitypublic org.bukkit.inventory.InventoryView openEnchanting(org.bukkit.Location location,
boolean force)
openEnchanting in interface org.bukkit.entity.HumanEntitypublic void closeInventory()
closeInventory in interface org.bukkit.entity.HumanEntitypublic void closeInventory(org.bukkit.event.inventory.InventoryCloseEvent.Reason reason)
closeInventory in interface org.bukkit.entity.HumanEntitypublic 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.HumanEntitypublic void setShoulderEntityLeft(org.bukkit.entity.Entity entity)
setShoulderEntityLeft in interface org.bukkit.entity.HumanEntitypublic org.bukkit.entity.Entity getShoulderEntityRight()
getShoulderEntityRight in interface org.bukkit.entity.HumanEntitypublic void setShoulderEntityRight(org.bukkit.entity.Entity entity)
setShoulderEntityRight in interface org.bukkit.entity.HumanEntitypublic org.bukkit.entity.Entity releaseLeftShoulderEntity()
releaseLeftShoulderEntity in interface org.bukkit.entity.HumanEntitypublic org.bukkit.entity.Entity releaseRightShoulderEntity()
releaseRightShoulderEntity in interface org.bukkit.entity.HumanEntitypublic 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.HumanEntitypublic GlowPlayerProfile getProfile()
public GlowPlayerInventory getInventory()
getInventory in interface org.bukkit.entity.HumanEntitygetInventory in interface org.bukkit.inventory.InventoryHolderpublic GlowInventory getEnderChest()
getEnderChest in interface org.bukkit.entity.HumanEntitypublic boolean isSleeping()
isSleeping in interface org.bukkit.entity.HumanEntitypublic org.bukkit.inventory.ItemStack getItemOnCursor()
getItemOnCursor in interface org.bukkit.entity.HumanEntitypublic void setItemOnCursor(org.bukkit.inventory.ItemStack itemOnCursor)
setItemOnCursor in interface org.bukkit.entity.HumanEntitypublic int getSleepTicks()
getSleepTicks in interface org.bukkit.entity.HumanEntitypublic boolean isOp()
isOp in interface org.bukkit.permissions.ServerOperatorisOp in class GlowEntitypublic org.bukkit.GameMode getGameMode()
getGameMode in interface org.bukkit.entity.HumanEntitypublic void setGameMode(org.bukkit.GameMode gameMode)
setGameMode in interface org.bukkit.entity.HumanEntitypublic org.bukkit.inventory.InventoryView getOpenInventory()
getOpenInventory in interface org.bukkit.entity.HumanEntitypublic int getXpSeed()
public void setXpSeed(int xpSeed)
Copyright © 2021. All rights reserved.