public class TridentCreeper extends TridentLivingEntity implements Creeper
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 |
|---|
TridentCreeper(UUID id,
Position spawnLocation) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doEncodeMeta(ProtocolMetadata protocolMeta) |
void |
doLoad(CompoundTag tag) |
float |
explosionRadius()
Gets this creeper's explosion radius
|
void |
hide(Entity entity)
Makes the specified entity invisible to the current entity
|
boolean |
isElectric()
Whether or not this creeper is powered (Struck by lightning)
|
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 |
setElectric(boolean powered)
Set whether or not this creeper is powered
|
void |
setExplosionRadius(float rad)
Sets this creeper's explosion radius
|
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, launchProjectile, load, maxHealth, path, performAiUpdate, remainingAir, remove, setAiModule, setHealth, setMaxHealth, setPath, setRemainingAirapplyProperties, 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, worldclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaiModule, canCollectItems, createStatusEffect, displayName, headLocation, health, isDead, maxHealth, path, remainingAir, setAiModule, setHealth, setMaxHealth, setPath, setRemainingAirapplyProperties, boundingBox, eject, entityId, isNameVisible, isSilent, onGround, passenger, position, remove, setDisplayName, setPassenger, setSize, setVelocity, teleport, teleport, teleport, uniqueId, velocity, withinRange, worldlaunchProjectilepublic TridentCreeper(UUID id, Position spawnLocation)
public void doLoad(CompoundTag tag)
doLoad in class TridentEntityprotected void doEncodeMeta(ProtocolMetadata protocolMeta)
doEncodeMeta in class TridentEntitypublic boolean isElectric()
CreeperisElectric in interface Creeperpublic void setElectric(boolean powered)
CreepersetElectric in interface Creeperpowered - whether the creeper should be powered or notpublic float explosionRadius()
CreeperexplosionRadius in interface Creeperpublic void setExplosionRadius(float rad)
CreepersetExplosionRadius in interface Creeperrad - radius to change topublic 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 EntityType type()
Entitytype in interface Entitytype in class TridentEntityCopyright © 2016. All rights reserved.