public class TridentVillager extends TridentLivingEntity implements Villager
attributes, canPickup, dead, health, invincibilityTicks, maxHealth, restTicks
airTicks, boundingBox, counter, displayName, executor, fallDistance, fireTicks, godMode, HANDLER, height, id, loc, nameVisible, onGround, passenger, portalCooldown, silent, ticksExisted, uniqueId, velocity, width
Constructor and Description |
---|
TridentVillager(UUID uuid,
Position spawnPosition,
VillagerCareer career,
VillagerProfession role) |
Modifier and Type | Method and Description |
---|---|
int |
age()
The current age of this entity, in ticks
|
boolean |
canBreed()
Whether or not this entity can breed or not, where the ability to breed represents whether or not this entity
can
become "in love"
|
VillagerCareer |
career()
The career of this villager
|
int |
careerLevel()
The current level of this villager's career.
|
boolean |
isInLove()
Whether or not this entity is "in love", such that it will actively display the particle effect for breeding
hearts and search for a mate
|
EntityDamageEvent |
lastDamageEvent()
Returns the last EntityDamageEvent which inflicted this Entity
|
Player |
lastPlayerDamager()
Returns the player who dealt damage to this Entity since its last full heal
|
VillagerProfession |
profession()
The profession of this villager
|
void |
setAge(int ticks)
Set the current age of this entity, in ticks
|
void |
setCareer(VillagerCareer career)
Sets the career of this villager.
|
void |
setProfession(VillagerProfession profession)
Sets the profession of this villager.
|
Collection<Trade> |
trades()
The trades this entity offers
|
EntityType |
type()
Gets the type of entity
|
aiHandler, aiModule, canCollectItems, createStatusEffect, doTick, encodeMetadata, headLocation, health, hide, isDead, launchProjectile, load, maxHealth, path, performAiUpdate, remainingAir, remove, setAiModule, setHealth, setMaxHealth, setPath, setRemainingAir, show
applyProperties, asNbt, boundingBox, displayName, doEncodeMeta, doLoad, doRemove, eject, entityId, isNameVisible, isSilent, onGround, passenger, position, setDisplayName, setOnGround, setPassenger, setPosition, setSize, setVelocity, spawn, teleport, teleport, teleport, tick, uniqueId, velocity, withinRange, world
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
aiModule, canCollectItems, createStatusEffect, displayName, headLocation, health, hide, isDead, maxHealth, path, remainingAir, setAiModule, setHealth, setMaxHealth, setPath, setRemainingAir, show
applyProperties, boundingBox, eject, entityId, isNameVisible, isSilent, onGround, passenger, position, remove, setDisplayName, setPassenger, setSize, setVelocity, teleport, teleport, teleport, uniqueId, velocity, withinRange, world
launchProjectile
public TridentVillager(UUID uuid, Position spawnPosition, VillagerCareer career, VillagerProfession role)
public VillagerProfession profession()
Villager
profession
in interface Villager
public void setProfession(VillagerProfession profession)
Villager
setProfession
in interface Villager
public VillagerCareer career()
Villager
public void setCareer(VillagerCareer career)
Villager
public int careerLevel()
Villager
careerLevel
in interface Villager
public int age()
Ageable
public void setAge(int ticks)
Ageable
public boolean canBreed()
Ageable
public boolean isInLove()
Ageable
public EntityDamageEvent lastDamageEvent()
LivingEntity
The event may be cancelled.
lastDamageEvent
in interface LivingEntity
public Player lastPlayerDamager()
LivingEntity
Used for death messages
lastPlayerDamager
in interface LivingEntity
public Collection<Trade> trades()
Tradeable
public EntityType type()
Entity
type
in interface Entity
type
in class TridentEntity
Copyright © 2016. All rights reserved.