public class Human extends EntityCreature implements InventoryHolder
| Modifier and Type | Field and Description |
|---|---|
protected UUID |
identity |
protected com.nukkitx.protocol.bedrock.data.skin.SerializedSkin |
skin |
attackTime, 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 |
|---|
Human(EntityType<Human> type,
Location location) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
attack(EntityDamageEvent source) |
protected double |
calculateEnchantmentProtectionFactor(Item item,
EntityDamageEvent source) |
void |
close() |
protected com.nukkitx.protocol.bedrock.BedrockPacket |
createAddEntityPacket() |
void |
despawnFrom(Player player) |
protected float |
getBaseOffset() |
Item[] |
getDrops() |
PlayerEnderChestInventory |
getEnderChestInventory() |
float |
getEyeHeight() |
float |
getHeight() |
PlayerInventory |
getInventory() |
float |
getLength() |
String |
getName() |
UUID |
getServerId() |
com.nukkitx.protocol.bedrock.data.skin.SerializedSkin |
getSkin() |
float |
getWidth() |
protected void |
initEntity() |
boolean |
isGliding() |
boolean |
isSneaking() |
boolean |
isSprinting() |
boolean |
isSwimming() |
void |
loadAdditionalData(com.nukkitx.nbt.NbtMap tag) |
void |
saveAdditionalData(com.nukkitx.nbt.NbtMapBuilder tag) |
void |
setGliding() |
void |
setGliding(boolean value) |
void |
setOnFire(int seconds) |
void |
setServerId(UUID uuid) |
void |
setSkin(com.nukkitx.protocol.bedrock.data.skin.SerializedSkin skin) |
void |
setSneaking() |
void |
setSneaking(boolean value) |
void |
setSprinting() |
void |
setSprinting(boolean value) |
void |
setSwimming() |
void |
setSwimming(boolean value) |
void |
spawnTo(Player player) |
collidingWith, entityBaseTick, entityBaseTick, getAirTicks, getDrag, getGravity, getLineOfSight, getLineOfSight, getLineOfSight, getMovementSpeed, getTargetBlock, getTargetBlock, hasLineOfSight, kill, knockBack, setAirTicks, setHealth, setMovementSpeedaddEffect, addMotion, addMovement, attack, broadcastLinkPacket, canBeMovedByCurrents, canClimb, canClimbWalls, canCollide, canCollideWith, canPassThrough, canTriggerPressurePlate, canTriggerWalking, checkBlockCollision, checkChunks, checkGroundState, checkObstruction, checkObstruction, despawnFromAll, dismount, extinguish, fall, fastMove, getAbsorption, getAir, getBlocksAround, getBoundingBox, getCardinalDirection, getCollisionBlocks, getData, getDirection, getDirectionPlane, getDirectionVector, getEffect, getEffects, getFireTicks, getHealth, getHighestPosition, getHorizontalDirection, getLastDamageCause, getLevel, getLocation, getMaxHealth, getMetadata, getMotion, getMountedOffset, getNameTag, getNoDamageTicks, getOwner, getPassenger, getPassengers, getPitch, getPosition, getRuntimeId, getScale, getScoreTag, getSeatPosition, getServer, getStepHeight, getTag, getType, getUniqueId, getVehicle, getViewers, getX, getY, getYaw, getZ, handleLavaMovement, hasControllingPassenger, hasEffect, hasMetadata, 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, onUpdate, recalculateBoundingBox, recalculateEffectColor, removeAllEffects, removeEffect, removeMetadata, resetFallDistance, respawnToAll, scheduleUpdate, sendData, sendData, sendFlags, sendPotionEffects, setAbsorption, setAir, setCanClimb, setCanClimb, setCanClimbWalls, setCanClimbWalls, setFallDistance, setHighestPosition, setImmobile, setImmobile, setInvulnerable, setLastDamageCause, setMaxHealth, setMetadata, setMotion, setNameTag, setNameTagAlwaysVisible, setNameTagAlwaysVisible, setNameTagVisible, setNameTagVisible, setNoDamageTicks, setOnGround, setOwner, setPosition, setPositionAndRotation, setRotation, setScale, setScoreTag, setSeatPosition, spawnToAll, switchLevel, teleport, teleport, teleport, teleport, toString, updateFallState, updateMovement, updatePassengerPosition, updatePassengersprotected UUID identity
protected com.nukkitx.protocol.bedrock.data.skin.SerializedSkin skin
public Human(EntityType<Human> type, Location location)
public float getWidth()
getWidth in interface EntitygetWidth in class BaseEntitypublic float getLength()
getLength in interface EntitygetLength in class BaseEntitypublic float getHeight()
getHeight in interface EntitygetHeight in class BaseEntitypublic float getEyeHeight()
getEyeHeight in interface EntitygetEyeHeight in class BaseEntityprotected float getBaseOffset()
getBaseOffset in class BaseEntitypublic com.nukkitx.protocol.bedrock.data.skin.SerializedSkin getSkin()
public UUID getServerId()
public void setServerId(UUID uuid)
public void setSkin(com.nukkitx.protocol.bedrock.data.skin.SerializedSkin skin)
public PlayerInventory getInventory()
getInventory in interface InventoryHolderpublic PlayerEnderChestInventory getEnderChestInventory()
protected void initEntity()
initEntity in class BaseEntitypublic void loadAdditionalData(com.nukkitx.nbt.NbtMap tag)
loadAdditionalData in interface EntityloadAdditionalData in class EntityLivingpublic void saveAdditionalData(com.nukkitx.nbt.NbtMapBuilder tag)
saveAdditionalData in interface EntitysaveAdditionalData in class EntityLivingpublic String getName()
getName in interface EntitygetName in class BaseEntitypublic void spawnTo(Player player)
spawnTo in interface EntityspawnTo in class BaseEntityprotected com.nukkitx.protocol.bedrock.BedrockPacket createAddEntityPacket()
createAddEntityPacket in class BaseEntitypublic void despawnFrom(Player player)
despawnFrom in interface EntitydespawnFrom in class BaseEntitypublic void close()
close in interface Entityclose in class BaseEntitypublic boolean attack(EntityDamageEvent source)
attack in interface Entityattack in class EntityLivingprotected double calculateEnchantmentProtectionFactor(Item item, EntityDamageEvent source)
public void setOnFire(int seconds)
setOnFire in interface EntitysetOnFire in class BaseEntitypublic Item[] getDrops()
getDrops in class EntityLivingpublic boolean isSneaking()
public void setSneaking(boolean value)
public void setSneaking()
public boolean isSwimming()
public void setSwimming(boolean value)
public void setSwimming()
public boolean isSprinting()
public void setSprinting(boolean value)
public void setSprinting()
public boolean isGliding()
public void setGliding(boolean value)
public void setGliding()
Copyright © 2020. All rights reserved.