public class TridentMooshroom extends TridentCow implements Mooshroom
owner, tameData
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 |
---|
TridentMooshroom(UUID id,
Position spawnLocation) |
Modifier and Type | Method and Description |
---|---|
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"
|
void |
hide(Entity entity)
Makes the specified entity invisible to the current entity
|
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
|
void |
show(Entity entity)
Un-hides the entity that was hidden from view, or does nothing of already visible
|
EntityType |
type()
Gets the type of entity
|
doEncodeMeta, isSitting, isTamed, owner, setTame
doLoad
age, setAge
aiHandler, aiModule, canCollectItems, createStatusEffect, doTick, encodeMetadata, headLocation, health, isDead, launchProjectile, load, maxHealth, path, performAiUpdate, remainingAir, remove, setAiModule, setHealth, setMaxHealth, setPath, setRemainingAir
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
aiModule, canCollectItems, createStatusEffect, displayName, headLocation, health, isDead, maxHealth, path, remainingAir, setAiModule, setHealth, setMaxHealth, setPath, setRemainingAir
applyProperties, boundingBox, eject, entityId, isNameVisible, isSilent, onGround, passenger, position, remove, setDisplayName, setPassenger, setSize, setVelocity, teleport, teleport, teleport, uniqueId, velocity, withinRange, world
launchProjectile
public TridentMooshroom(UUID id, Position spawnLocation)
public boolean canBreed()
Ageable
canBreed
in interface Ageable
canBreed
in class TridentBreedable
public boolean isInLove()
Ageable
isInLove
in interface Ageable
isInLove
in class TridentBreedable
public void hide(Entity entity)
LivingEntity
Has no effect if the current entity is not a player
hide
in interface LivingEntity
hide
in class TridentCow
entity
- the entity to make invisible to this entitypublic void show(Entity entity)
LivingEntity
Has no effect if the current entity is not a player
show
in interface LivingEntity
show
in class TridentCow
entity
- the entity to make visible to this entitypublic EntityDamageEvent lastDamageEvent()
LivingEntity
The event may be cancelled.
lastDamageEvent
in interface LivingEntity
lastDamageEvent
in class TridentCow
public Player lastPlayerDamager()
LivingEntity
Used for death messages
lastPlayerDamager
in interface LivingEntity
lastPlayerDamager
in class TridentCow
public EntityType type()
Entity
type
in interface Entity
type
in class TridentCow
Copyright © 2016. All rights reserved.