public class TridentBat extends TridentLivingEntity implements Bat
attributes, canPickup, dead, health, invincibilityTicks, maxHealth, restTicksairTicks, boundingBox, counter, displayName, executor, fallDistance, fireTicks, godMode, HANDLER, height, id, loc, nameVisible, onGround, passenger, portalCooldown, silent, ticksExisted, uniqueId, velocity, width| Constructor and Description |
|---|
TridentBat(UUID id,
Position spawnLocation) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyProperties(EntityProperties properties)
Sets the properties of this entity to the specified properties
|
protected void |
doEncodeMeta(ProtocolMetadata protocolMeta) |
void |
hide(Entity entity)
Makes the specified entity invisible to the current entity
|
boolean |
isFlying()
Whether or not the bat is flying
|
boolean |
isHanging()
Whether or not the bat is hanging
|
boolean |
isHostile()
Whether or not this entity has been angered.
|
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
|
<T extends Projectile> |
launchProjectile(EntityProperties properties)
Launch a projectile based on the given EntityProperties
|
void |
load(CompoundTag tag) |
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
|
aiHandler, aiModule, canCollectItems, createStatusEffect, doTick, encodeMetadata, headLocation, health, isDead, maxHealth, path, performAiUpdate, remainingAir, remove, setAiModule, setHealth, setMaxHealth, setPath, setRemainingAirasNbt, boundingBox, displayName, doLoad, doRemove, eject, entityId, isNameVisible, isSilent, onGround, passenger, position, setDisplayName, setOnGround, setPassenger, setPosition, setSize, setVelocity, spawn, teleport, teleport, teleport, tick, uniqueId, velocity, withinRange, worldclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaiModule, canCollectItems, createStatusEffect, displayName, headLocation, health, isDead, maxHealth, path, remainingAir, setAiModule, setHealth, setMaxHealth, setPath, setRemainingAirboundingBox, eject, entityId, isNameVisible, isSilent, onGround, passenger, position, remove, setDisplayName, setPassenger, setSize, setVelocity, teleport, teleport, teleport, uniqueId, velocity, withinRange, worldpublic TridentBat(UUID id, Position spawnLocation)
protected void doEncodeMeta(ProtocolMetadata protocolMeta)
doEncodeMeta in class TridentEntitypublic void load(CompoundTag tag)
load in class TridentLivingEntitypublic boolean isHanging()
Batpublic boolean isFlying()
Batpublic boolean isHostile()
Neutralpublic void hide(Entity entity)
LivingEntityHas no effect if the current entity is not a player
hide in interface LivingEntityhide in class TridentLivingEntityentity - the entity to make invisible to this entitypublic void show(Entity entity)
LivingEntityHas no effect if the current entity is not a player
show in interface LivingEntityshow in class TridentLivingEntityentity - the entity to make visible to this entitypublic EntityDamageEvent lastDamageEvent()
LivingEntityThe event may be cancelled.
lastDamageEvent in interface LivingEntitypublic Player lastPlayerDamager()
LivingEntityUsed for death messages
lastPlayerDamager in interface LivingEntitypublic void applyProperties(EntityProperties properties)
EntityapplyProperties in interface EntityapplyProperties in class TridentEntityproperties - the properties to setpublic <T extends Projectile> T launchProjectile(EntityProperties properties)
ProjectileLauncherlaunchProjectile in interface ProjectileLauncherlaunchProjectile in class TridentLivingEntitypublic EntityType type()
Entitytype in interface Entitytype in class TridentEntityCopyright © 2016. All rights reserved.