public class AreaEffectCloudEntity extends Entity
Entity.PositionUpdater
Modifier and Type | Field and Description |
---|---|
private Map<Entity,Integer> |
affectedEntities |
private static TrackedData<Integer> |
COLOR |
private boolean |
customColor |
private int |
duration |
private int |
durationOnUse |
private List<StatusEffectInstance> |
effects |
private static Logger |
LOGGER |
private LivingEntity |
owner |
private UUID |
ownerUuid |
private static TrackedData<ParticleEffect> |
PARTICLE_ID |
private Potion |
potion |
private static TrackedData<Float> |
RADIUS |
private float |
radiusGrowth |
private float |
radiusOnUse |
private int |
reapplicationDelay |
private static TrackedData<Boolean> |
WAITING |
private int |
waitTime |
age, chunkX, chunkY, chunkZ, dataTracker, distanceTraveled, fallDistance, field_25599, firstUpdate, FLAGS, fluidHeight, glowing, horizontalCollision, horizontalSpeed, ignoreCameraFrustum, inanimate, inNetherPortal, lastNetherPortalPosition, lastRenderX, lastRenderY, lastRenderZ, movementMultiplier, netherPortalTime, noClip, onGround, pitch, POSE, prevHorizontalSpeed, prevPitch, prevX, prevY, prevYaw, prevZ, pushSpeedReduction, random, removed, ridingCooldown, stepHeight, submergedInWater, teleporting, timeUntilRegen, touchingWater, updateNeeded, uuid, uuidString, velocityDirty, velocityModified, verticalCollision, world, yaw
DUMMY
Constructor and Description |
---|
AreaEffectCloudEntity(EntityType<? extends AreaEffectCloudEntity> type,
World world) |
AreaEffectCloudEntity(World world,
double x,
double y,
double z) |
Modifier and Type | Method and Description |
---|---|
void |
addEffect(StatusEffectInstance effect) |
void |
calculateDimensions() |
Packet<?> |
createSpawnPacket() |
int |
getColor() |
EntityDimensions |
getDimensions(EntityPose pose) |
int |
getDuration() |
LivingEntity |
getOwner() |
ParticleEffect |
getParticleType() |
PistonBehavior |
getPistonBehavior() |
float |
getRadius() |
protected void |
initDataTracker() |
boolean |
isWaiting() |
void |
onTrackedDataSet(TrackedData<?> data) |
protected void |
readCustomDataFromTag(CompoundTag tag) |
void |
setColor(int rgb) |
void |
setDuration(int duration) |
void |
setOwner(LivingEntity owner) |
void |
setParticleType(ParticleEffect particle) |
void |
setPotion(Potion potion) |
void |
setRadius(float radius) |
void |
setRadiusGrowth(float growth) |
void |
setRadiusOnUse(float radius) |
protected void |
setWaiting(boolean waiting) |
void |
setWaitTime(int ticks) |
void |
tick() |
private void |
updateColor() |
protected void |
writeCustomDataToTag(CompoundTag tag) |
addPassenger, addScoreboardTag, addVelocity, adjustMovementForCollisions, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, adjustSingleAxisMovementForCollisions, afterSpawn, animateDamage, applyMirror, applyRotation, baseTick, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundsForPose, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeRiddenInWater, canBeSpectated, canClimb, canExplosionDestroyBlock, canFly, canStartRiding, canUsePortals, changeLookDirection, checkBlockCollision, checkDespawn, checkWaterState, collides, collidesWith, copyFrom, copyPositionAndRotation, damage, dealDamage, destroy, detach, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, entityDataRequiresOperator, equals, equip, equipStack, extinguish, fall, fromTag, getAir, getArmorItems, getBlockPos, getBodyY, getBoundingBox, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getCommandSource, getCustomName, getDataTracker, getDefaultName, getDefaultNetherPortalCooldown, getDisplayName, getEffectiveExplosionResistance, getEntityId, getEntityName, getEntityWorld, getEyeHeight, getEyeHeight, getEyeY, getFireTicks, getFlag, getFluidHeight, getHeadYaw, getHeight, getHeightOffset, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getItemsEquipped, getItemsHand, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getMaxAir, getMaxNetherPortalTime, getMountedHeightOffset, getMovementDirection, getName, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerDismountOffset, getPassengerList, getPassengersDeep, getPermissionLevel, getPitch, getPos, getPose, getPrimaryPassenger, getRandomBodyY, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSafeFallDistance, getSavedEntityId, getScoreboardTags, getScoreboardTeam, getServer, getSoundCategory, getSplashSound, getStandingEyeHeight, getSwimSound, getTargetingMargin, getTeamColorValue, getTeleportTarget, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVelocity, getVelocityAffectingPos, getVelocityMultiplier, getVisibilityBoundingBox, getWidth, getX, getY, getYaw, getZ, handleAttack, handleFallDamage, handleStatus, hasCustomName, hashCode, hasNetherPortalCooldown, hasNoGravity, hasPassenger, hasPassengerDeep, hasPassengers, hasPassengerType, hasPermissionLevel, hasPlayerRider, hasVehicle, hasWings, interact, interactAt, isAlive, isAttackable, isChunkPosUpdateRequested, isCollidable, isConnectedThroughVehicle, isCustomNameVisible, isDescending, isFireImmune, isGlowing, isImmuneToExplosion, isInLava, isInRange, isInsideWall, isInsideWaterOrBubbleColumn, isInSneakingPose, isInSwimmingPose, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isLiving, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isPartOf, isPushable, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSubmergedInWater, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, isWet, kill, lookAt, method_29239, method_29241, method_29919, method_30076, method_30330, method_30632, method_30633, method_30634, method_30950, method_30951, method_31166, move, moveToBoundingBoxCenter, moveToWorld, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onKilledOther, onPassengerLookAround, onPlayerCollision, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, playFlySound, playSound, playStepSound, playSwimSound, populateCrashReport, pushAwayFrom, pushOutOfBlocks, raycast, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, remove, removeAllPassengers, removePassenger, removeScoreboardTag, requestTeleport, resetNetherPortalCooldown, resetPosition, saveSelfToTag, saveToTag, scheduleVelocityUpdate, sendSystemMessage, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setEntityId, setFireTicks, setFlag, setGlowing, setHeadYaw, setInNetherPortal, setInvisible, setInvulnerable, setNoGravity, setOnFireFor, setOnFireFromLava, setOnGround, setPos, setPose, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSprinting, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, setWorld, setYaw, shouldBroadcastConsoleToOps, shouldLeaveSwimmingPose, shouldReceiveFeedback, shouldRender, shouldRender, shouldRenderName, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTrackOutput, slowMovement, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, squaredHorizontalLength, startRiding, startRiding, stopRiding, streamPassengersRecursively, teleport, teleportRequested, tickNetherPortal, tickNetherPortalCooldown, tickRiding, toListTag, toListTag, toString, toTag, updateKilledAdvancementCriterion, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSwimming, updateTrackedHeadRotation, updateTrackedPosition, updateTrackedPosition, updateTrackedPositionAndAngles, updateVelocity, updateWaterState, wouldPoseNotCollide
private static final Logger LOGGER
private static final TrackedData<Float> RADIUS
private static final TrackedData<Integer> COLOR
private static final TrackedData<Boolean> WAITING
private static final TrackedData<ParticleEffect> PARTICLE_ID
private Potion potion
private final List<StatusEffectInstance> effects
private int duration
private int waitTime
private int reapplicationDelay
private boolean customColor
private int durationOnUse
private float radiusOnUse
private float radiusGrowth
private LivingEntity owner
private UUID ownerUuid
public AreaEffectCloudEntity(EntityType<? extends AreaEffectCloudEntity> type, World world)
public AreaEffectCloudEntity(World world, double x, double y, double z)
protected void initDataTracker()
initDataTracker
in class Entity
public void setRadius(float radius)
public void calculateDimensions()
calculateDimensions
in class Entity
public float getRadius()
public void setPotion(Potion potion)
private void updateColor()
public void addEffect(StatusEffectInstance effect)
public int getColor()
public void setColor(int rgb)
public ParticleEffect getParticleType()
public void setParticleType(ParticleEffect particle)
protected void setWaiting(boolean waiting)
public boolean isWaiting()
public int getDuration()
public void setDuration(int duration)
public void setRadiusOnUse(float radius)
public void setRadiusGrowth(float growth)
public void setWaitTime(int ticks)
public void setOwner(@Nullable LivingEntity owner)
@Nullable public LivingEntity getOwner()
protected void readCustomDataFromTag(CompoundTag tag)
readCustomDataFromTag
in class Entity
protected void writeCustomDataToTag(CompoundTag tag)
writeCustomDataToTag
in class Entity
public void onTrackedDataSet(TrackedData<?> data)
onTrackedDataSet
in class Entity
public PistonBehavior getPistonBehavior()
getPistonBehavior
in class Entity
public Packet<?> createSpawnPacket()
createSpawnPacket
in class Entity
public EntityDimensions getDimensions(EntityPose pose)
getDimensions
in class Entity