public class EntityAreaEffectCloud extends BaseEntity implements AreaEffectCloud
| Modifier and Type | Field and Description |
|---|---|
protected List<Effect> |
cloudEffects |
protected int |
durationOnUse |
protected float |
initialRadius |
protected int |
nextApply |
protected int |
particleColor |
protected boolean |
particleColorSet |
protected float |
radiusOnUse |
protected int |
reapplicationDelay |
absorption, age, blocksAround, boundingBox, chunk, closed, collisionBlockStates, data, deadTicks, effects, entityCollisionReduction, fallDistance, fireProof, fireTicks, firstMove, hasSpawned, health, highestPosition, inBlock, inPortalTicks, invulnerable, isCollided, isCollidedHorizontally, isCollidedVertically, isPlayer, isStatic, justCreated, keepMovement, lastDamageCause, lastMotion, lastPitch, lastPosition, lastUpdate, lastYaw, level, maxFireTicks, motion, motionChanged, noDamageTicks, onGround, passengers, pitch, pitchDelta, position, positionChanged, scale, server, tag, ticksLived, timing, vehicle, yaw, yawDelta, ySize| Constructor and Description |
|---|
EntityAreaEffectCloud(EntityType<?> type,
Location location) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
attack(EntityDamageEvent source) |
boolean |
canCollideWith(Entity entity) |
List<Effect> |
getCloudEffects() |
float |
getDrag() |
int |
getDuration() |
float |
getGravity() |
float |
getHeight() |
float |
getLength() |
int |
getParticleId() |
int |
getPickupCount() |
int |
getPotionColor() |
short |
getPotionId() |
float |
getRadius() |
float |
getRadiusChangeOnPickup() |
float |
getRadiusPerTick() |
long |
getSpawnTime() |
int |
getWaitTime() |
float |
getWidth() |
protected void |
initEntity() |
void |
loadAdditionalData(com.nukkitx.nbt.NbtMap tag) |
boolean |
onUpdate(int currentTick) |
void |
recalculatePotionColor() |
void |
saveAdditionalData(com.nukkitx.nbt.NbtMapBuilder tag) |
void |
setDuration(int duration) |
void |
setParticleId(int particleId) |
void |
setPickupCount(int pickupCount) |
void |
setPotionColor(int argp) |
void |
setPotionColor(int alpha,
int red,
int green,
int blue) |
void |
setPotionId(int potionId) |
void |
setRadius(float radius) |
void |
setRadiusChangeOnPickup(float radiusChangeOnPickup) |
void |
setRadiusPerTick(float radiusPerTick) |
void |
setSpawnTime(long spawnTime) |
void |
setWaitTime(int waitTime) |
addEffect, addMotion, addMovement, attack, broadcastLinkPacket, canBeMovedByCurrents, canClimb, canClimbWalls, canCollide, canPassThrough, canTriggerPressurePlate, canTriggerWalking, checkBlockCollision, checkChunks, checkGroundState, checkObstruction, checkObstruction, close, createAddEntityPacket, despawnFrom, despawnFromAll, dismount, entityBaseTick, entityBaseTick, extinguish, fall, fastMove, getAbsorption, getAir, getBaseOffset, getBlocksAround, getBoundingBox, getCardinalDirection, getCollisionBlocks, getData, getDirection, getDirectionPlane, getDirectionVector, getEffect, getEffects, getEyeHeight, getFireTicks, getHealth, getHighestPosition, getHorizontalDirection, getLastDamageCause, getLevel, getLocation, getMaxHealth, getMetadata, getMotion, getMountedOffset, getName, getNameTag, getNoDamageTicks, getOwner, getPassenger, getPassengers, getPitch, getPosition, getRuntimeId, getScale, getScoreTag, getSeatPosition, getServer, getStepHeight, getTag, getType, getUniqueId, getVehicle, getViewers, getX, getY, getYaw, getZ, handleLavaMovement, hasControllingPassenger, hasEffect, hasMetadata, hasNameTag, heal, heal, init, isAlive, isClosed, isControlling, isImmobile, isInsideOfFire, isInsideOfSolid, isInsideOfWater, isInvulnerable, isNameTagAlwaysVisible, isNameTagVisible, isOnGround, isPassenger, kill, mount, move, move, onCollideWithPlayer, onDismount, onEntityCollision, onInteract, onInteract, onMount, onStruckByLightning, recalculateBoundingBox, recalculateEffectColor, removeAllEffects, removeEffect, removeMetadata, resetFallDistance, respawnToAll, scheduleUpdate, sendData, sendData, sendFlags, sendPotionEffects, setAbsorption, setAir, setCanClimb, setCanClimb, setCanClimbWalls, setCanClimbWalls, setFallDistance, setHealth, setHighestPosition, setImmobile, setImmobile, setInvulnerable, setLastDamageCause, setMaxHealth, setMetadata, setMotion, setNameTag, setNameTagAlwaysVisible, setNameTagAlwaysVisible, setNameTagVisible, setNameTagVisible, setNoDamageTicks, setOnFire, setOnGround, setOwner, setPosition, setPositionAndRotation, setRotation, setScale, setScoreTag, setSeatPosition, spawnTo, spawnToAll, switchLevel, teleport, teleport, teleport, teleport, toString, updateFallState, updateMovement, updatePassengerPosition, updatePassengersclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddEffect, attack, canBeMovedByCurrents, canCollide, canPassThrough, canTriggerPressurePlate, close, despawnFrom, despawnFromAll, dismount, extinguish, fall, getAbsorption, getBoundingBox, getData, getDirection, getDirectionPlane, getDirectionVector, getEffect, getEffects, getEyeHeight, getFireTicks, getHealth, getHighestPosition, getHorizontalDirection, getLastDamageCause, getLevel, getLocation, getMaxHealth, getMotion, getName, getNameTag, getNoDamageTicks, getOwner, getPassengers, getPitch, getPosition, getRuntimeId, getScale, getSeatPosition, getServer, getTag, getType, getUniqueId, getVehicle, getViewers, getX, getY, getYaw, getZ, hasControllingPassenger, hasEffect, hasNameTag, heal, heal, isAlive, isClosed, isControlling, isNameTagVisible, isOnFire, isOnGround, isPassenger, isUndead, kill, mount, mount, onDismount, onEntityCollision, onInteract, onMount, onStruckByLightning, removeAllEffects, removeEffect, resetFallDistance, setAbsorption, setHealth, setHighestPosition, setMaxHealth, setMotion, setNameTag, setNoDamageTicks, setOnFire, setOnGround, setOwner, setPosition, setPositionAndRotation, setRotation, setScale, setSeatPosition, spawnTo, spawnToAll, teleport, teleport, teleport, teleportgetMetadata, hasMetadata, removeMetadata, setMetadataprotected int reapplicationDelay
protected int durationOnUse
protected float initialRadius
protected float radiusOnUse
protected int nextApply
protected int particleColor
protected boolean particleColorSet
public EntityAreaEffectCloud(EntityType<?> type, Location location)
public int getWaitTime()
getWaitTime in interface AreaEffectCloudpublic void setWaitTime(int waitTime)
setWaitTime in interface AreaEffectCloudpublic short getPotionId()
getPotionId in interface AreaEffectCloudpublic void setPotionId(int potionId)
setPotionId in interface AreaEffectCloudpublic void recalculatePotionColor()
recalculatePotionColor in interface AreaEffectCloudpublic int getPotionColor()
getPotionColor in interface AreaEffectCloudpublic void setPotionColor(int argp)
setPotionColor in interface AreaEffectCloudpublic void setPotionColor(int alpha,
int red,
int green,
int blue)
setPotionColor in interface AreaEffectCloudpublic int getPickupCount()
getPickupCount in interface AreaEffectCloudpublic void setPickupCount(int pickupCount)
setPickupCount in interface AreaEffectCloudpublic float getRadiusChangeOnPickup()
getRadiusChangeOnPickup in interface AreaEffectCloudpublic void setRadiusChangeOnPickup(float radiusChangeOnPickup)
setRadiusChangeOnPickup in interface AreaEffectCloudpublic float getRadiusPerTick()
getRadiusPerTick in interface AreaEffectCloudpublic void setRadiusPerTick(float radiusPerTick)
setRadiusPerTick in interface AreaEffectCloudpublic long getSpawnTime()
getSpawnTime in interface AreaEffectCloudpublic void setSpawnTime(long spawnTime)
setSpawnTime in interface AreaEffectCloudpublic int getDuration()
getDuration in interface AreaEffectCloudpublic void setDuration(int duration)
setDuration in interface AreaEffectCloudpublic float getRadius()
getRadius in interface AreaEffectCloudpublic void setRadius(float radius)
setRadius in interface AreaEffectCloudpublic int getParticleId()
getParticleId in interface AreaEffectCloudpublic void setParticleId(int particleId)
setParticleId in interface AreaEffectCloudprotected void initEntity()
initEntity in class BaseEntitypublic void loadAdditionalData(com.nukkitx.nbt.NbtMap tag)
loadAdditionalData in interface EntityloadAdditionalData in class BaseEntitypublic void saveAdditionalData(com.nukkitx.nbt.NbtMapBuilder tag)
saveAdditionalData in interface EntitysaveAdditionalData in class BaseEntitypublic boolean attack(EntityDamageEvent source)
attack in interface Entityattack in class BaseEntitypublic boolean onUpdate(int currentTick)
onUpdate in interface EntityonUpdate in class BaseEntitypublic boolean canCollideWith(Entity entity)
canCollideWith in interface EntitycanCollideWith in class BaseEntitypublic float getHeight()
getHeight in interface EntitygetHeight in class BaseEntitypublic float getWidth()
getWidth in interface EntitygetWidth in class BaseEntitypublic float getLength()
getLength in interface EntitygetLength in class BaseEntitypublic float getGravity()
getGravity in interface EntitygetGravity in class BaseEntitypublic float getDrag()
getDrag in interface EntitygetDrag in class BaseEntitypublic List<Effect> getCloudEffects()
getCloudEffects in interface AreaEffectCloudCopyright © 2020. All rights reserved.