Class EntityVillager
java.lang.Object
org.cloudburstmc.server.entity.BaseEntity
org.cloudburstmc.server.entity.EntityLiving
org.cloudburstmc.server.entity.EntityCreature
org.cloudburstmc.server.entity.passive.EntityVillager
- All Implemented Interfaces:
org.cloudburstmc.api.entity.Creature,org.cloudburstmc.api.entity.Damageable,org.cloudburstmc.api.entity.Entity,org.cloudburstmc.api.entity.EntityAgeable,org.cloudburstmc.api.entity.Living,org.cloudburstmc.api.entity.passive.Villager,org.cloudburstmc.api.inventory.InventoryHolder
public class EntityVillager
extends EntityCreature
implements org.cloudburstmc.api.entity.passive.Villager, org.cloudburstmc.api.entity.EntityAgeable
Created by Pub4Game on 21.06.2016.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic intstatic intstatic intstatic intstatic intstatic intFields inherited from class org.cloudburstmc.server.entity.EntityLiving
attackTime, invisible, movementSpeed, turtleTicksFields inherited from class org.cloudburstmc.server.entity.BaseEntity
absorption, 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 Summary
ConstructorsConstructorDescriptionEntityVillager(org.cloudburstmc.api.entity.EntityType<org.cloudburstmc.api.entity.passive.Villager> type, org.cloudburstmc.api.level.Location location) -
Method Summary
Modifier and TypeMethodDescriptionfloatgetName()intfloatgetWidth()voidbooleanisBaby()voidloadAdditionalData(com.nukkitx.nbt.NbtMap tag)voidsaveAdditionalData(com.nukkitx.nbt.NbtMapBuilder tag)voidsetProfession(int profession)Methods inherited from class org.cloudburstmc.server.entity.EntityCreature
getInventoryMethods inherited from class org.cloudburstmc.server.entity.EntityLiving
attack, collidingWith, entityBaseTick, entityBaseTick, getAirTicks, getDrag, getDrops, getGravity, getLineOfSight, getLineOfSight, getLineOfSight, getMovementSpeed, getTargetBlock, getTargetBlock, hasLineOfSight, kill, knockBack, setAirTicks, setHealth, setMovementSpeedMethods inherited from class org.cloudburstmc.server.entity.BaseEntity
addEffect, addMotion, addMovement, attack, broadcastLinkPacket, canBeMovedByCurrents, canClimb, canClimbWalls, canCollide, canCollideWith, canPassThrough, canTriggerPressurePlate, canTriggerWalking, checkBlockCollision, checkChunks, checkGroundState, checkObstruction, checkObstruction, close, createAddEntityPacket, despawnFrom, despawnFrom, despawnFromAll, dismount, extinguish, fall, fastMove, getAbsorption, getAir, getBaseOffset, getBlocksAround, getBoundingBox, getCardinalDirection, getChunk, getCollisionBlocks, getData, getDirection, getDirectionPlane, getDirectionVector, getEffect, getEffect, getEffects, getEyeHeight, getFireTicks, getHealth, getHighestPosition, getHorizontalDirection, getLastDamageCause, getLength, getLevel, getLocation, getMaxHealth, 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, 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, onUpdate, recalculateBoundingBox, recalculateEffectColor, removeAllEffects, removeEffect, removeEffect, resetFallDistance, respawnToAll, scheduleUpdate, sendData, sendData, sendFlags, sendPotionEffects, setAbsorption, setAir, setCanClimb, setCanClimb, setCanClimbWalls, setCanClimbWalls, setFallDistance, setHighestPosition, setImmobile, setImmobile, setInvulnerable, setLastDamageCause, setMaxHealth, setMotion, setNameTag, setNameTagAlwaysVisible, setNameTagAlwaysVisible, setNameTagVisible, setNameTagVisible, setNoDamageTicks, setOnFire, setOnGround, setOwner, setPosition, setPositionAndRotation, setRotation, setScale, setScoreTag, setSeatPosition, spawnTo, spawnTo, spawnToAll, switchLevel, teleport, teleport, teleport, teleport, toString, updateFallState, updateMovement, updatePassengerPosition, updatePassengersMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.cloudburstmc.api.entity.Entity
addEffect, attack, attack, canBeMovedByCurrents, canCollide, canCollideWith, canPassThrough, canTriggerPressurePlate, close, despawnFrom, despawnFromAll, dismount, extinguish, fall, getAbsorption, getBoundingBox, getChunk, getDirection, getDirectionPlane, getDirectionVector, getDrag, getEffect, getEffect, getEffects, getEyeHeight, getFireTicks, getGravity, getHealth, getHighestPosition, getHorizontalDirection, getLastDamageCause, getLength, getLevel, getLocation, getMaxHealth, getMotion, getNameTag, getNoDamageTicks, getOwner, getPassengers, getPitch, getPosition, getRuntimeId, getScale, getSeatPosition, getServer, getType, getUniqueId, getVehicle, getViewers, getX, getY, getYaw, getZ, hasControllingPassenger, hasEffect, hasEffect, hasNameTag, heal, heal, isAlive, isClosed, isControlling, isNameTagVisible, isOnFire, isOnGround, isPassenger, isUndead, kill, mount, mount, onDismount, onEntityCollision, onInteract, onMount, onStruckByLightning, onUpdate, removeAllEffects, removeEffect, removeEffect, resetFallDistance, setAbsorption, setHealth, setHighestPosition, setMaxHealth, setMotion, setNameTag, setNameTagVisible, setNoDamageTicks, setOnFire, setOnGround, setOwner, setPosition, setPositionAndRotation, setRotation, setScale, setSeatPosition, spawnTo, spawnToAll, teleport, teleport, teleport, teleport
-
Field Details
-
PROFESSION_FARMER
public static final int PROFESSION_FARMER- See Also:
- Constant Field Values
-
PROFESSION_LIBRARIAN
public static final int PROFESSION_LIBRARIAN- See Also:
- Constant Field Values
-
PROFESSION_PRIEST
public static final int PROFESSION_PRIEST- See Also:
- Constant Field Values
-
PROFESSION_BLACKSMITH
public static final int PROFESSION_BLACKSMITH- See Also:
- Constant Field Values
-
PROFESSION_BUTCHER
public static final int PROFESSION_BUTCHER- See Also:
- Constant Field Values
-
PROFESSION_GENERIC
public static final int PROFESSION_GENERIC- See Also:
- Constant Field Values
-
-
Constructor Details
-
EntityVillager
public EntityVillager(org.cloudburstmc.api.entity.EntityType<org.cloudburstmc.api.entity.passive.Villager> type, org.cloudburstmc.api.level.Location location)
-
-
Method Details
-
getWidth
public float getWidth()- Specified by:
getWidthin interfaceorg.cloudburstmc.api.entity.Entity- Overrides:
getWidthin classBaseEntity
-
getHeight
public float getHeight()- Specified by:
getHeightin interfaceorg.cloudburstmc.api.entity.Entity- Overrides:
getHeightin classBaseEntity
-
getName
- Specified by:
getNamein interfaceorg.cloudburstmc.api.entity.Entity- Overrides:
getNamein classBaseEntity
-
initEntity
public void initEntity()- Overrides:
initEntityin classBaseEntity
-
loadAdditionalData
public void loadAdditionalData(com.nukkitx.nbt.NbtMap tag)- Overrides:
loadAdditionalDatain classEntityCreature
-
saveAdditionalData
public void saveAdditionalData(com.nukkitx.nbt.NbtMapBuilder tag)- Overrides:
saveAdditionalDatain classEntityCreature
-
getProfession
public int getProfession() -
setProfession
public void setProfession(int profession) -
isBaby
public boolean isBaby()- Specified by:
isBabyin interfaceorg.cloudburstmc.api.entity.EntityAgeable
-