public class TridentChicken extends TridentBreedable implements Chicken
canBreed, inLove, loveTimeout
age
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 |
---|
TridentChicken(UUID id,
Position spawnLocation) |
Modifier and Type | Method and Description |
---|---|
void |
doLoad(CompoundTag tag) |
boolean |
isJockey()
Whether or not this Chicken is a 'Chicken Jockey', defined by whether or not this Chicken will naturally despawn
|
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
|
int |
nextLayInterval()
Ticks until this Chicken will lay its egg
|
EntityType |
type()
Gets the type of entity
|
canBreed, isInLove
age, doEncodeMeta, setAge
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, 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
age, canBreed, isInLove, setAge
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 TridentChicken(UUID id, Position spawnLocation)
public void doLoad(CompoundTag tag)
doLoad
in class TridentBreedable
public boolean isJockey()
Chicken
public int nextLayInterval()
Chicken
nextLayInterval
in interface Chicken
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 EntityType type()
Entity
type
in interface Entity
type
in class TridentEntity
Copyright © 2016. All rights reserved.