Package net.minecraft.entity
Class AreaEffectCloudEntity
java.lang.Object
net.minecraft.entity.Entity
net.minecraft.entity.AreaEffectCloudEntity
- All Implemented Interfaces:
class_5568,CommandOutput,Nameable
public class AreaEffectCloudEntity extends Entity
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.PositionUpdater, Entity.RemovalReason -
Field Summary
Fields Modifier and Type Field Description private Map<Entity,Integer>affectedEntitiesprivate static TrackedData<Integer>COLORprivate booleancustomColorprivate intdurationprivate intdurationOnUseprivate List<StatusEffectInstance>effectsprivate static LoggerLOGGERprivate LivingEntityownerprivate UUIDownerUuidprivate static TrackedData<ParticleEffect>PARTICLE_IDprivate Potionpotionprivate static TrackedData<Float>RADIUSprivate floatradiusGrowthprivate floatradiusOnUseprivate intreapplicationDelayprivate static TrackedData<Boolean>WAITINGprivate intwaitTimeFields inherited from class net.minecraft.entity.Entity
age, dataTracker, distanceTraveled, fallDistance, field_25599, firstUpdate, FLAGS, fluidHeight, glowing, horizontalCollision, horizontalSpeed, ignoreCameraFrustum, inanimate, inNetherPortal, inPowderSnow, lastNetherPortalPosition, lastRenderX, lastRenderY, lastRenderZ, movementMultiplier, netherPortalTime, noClip, onGround, pitch, POSE, prevHorizontalSpeed, prevPitch, prevX, prevY, prevYaw, prevZ, pushSpeedReduction, random, ridingCooldown, stepHeight, submergedInWater, timeUntilRegen, touchingWater, uuid, uuidString, velocityDirty, velocityModified, verticalCollision, world, yawFields inherited from interface net.minecraft.server.command.CommandOutput
DUMMY -
Constructor Summary
Constructors Constructor Description AreaEffectCloudEntity(EntityType<? extends AreaEffectCloudEntity> type, World world)AreaEffectCloudEntity(World world, double x, double y, double z) -
Method Summary
Modifier and Type Method Description voidaddEffect(StatusEffectInstance effect)voidcalculateDimensions()Packet<?>createSpawnPacket()intgetColor()EntityDimensionsgetDimensions(EntityPose pose)intgetDuration()LivingEntitygetOwner()ParticleEffectgetParticleType()PistonBehaviorgetPistonBehavior()floatgetRadius()protected voidinitDataTracker()booleanisWaiting()voidonTrackedDataSet(TrackedData<?> data)protected voidreadCustomDataFromTag(CompoundTag tag)voidsetColor(int rgb)voidsetDuration(int duration)voidsetOwner(LivingEntity owner)voidsetParticleType(ParticleEffect particle)voidsetPotion(Potion potion)voidsetRadius(float radius)voidsetRadiusGrowth(float growth)voidsetRadiusOnUse(float radius)protected voidsetWaiting(boolean waiting)voidsetWaitTime(int ticks)voidtick()private voidupdateColor()protected voidwriteCustomDataToTag(CompoundTag tag)Methods inherited from class net.minecraft.entity.Entity
addPassenger, addScoreboardTag, addVelocity, adjustMovementForCollisions, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, adjustSingleAxisMovementForCollisions, afterSpawn, animateDamage, applyMirror, applyRotation, baseTick, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundsForPose, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeRiddenInWater, canBeSpectated, canClimb, canExplosionDestroyBlock, canFly, canFreeze, canStartRiding, canUsePortals, changeLookDirection, checkBlockCollision, checkDespawn, checkWaterState, collides, collidesWith, copyFrom, copyPositionAndRotation, damage, dealDamage, destroy, detach, discard, dismountVehicle, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, emitGameEvent, entityDataRequiresOperator, equals, equipStack, extinguish, fall, fromTag, getAir, getArmorItems, getBlockPos, getBlockX, getBlockY, getBlockZ, getBodyY, getBoundingBox, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getChunkPos, getCommandSource, getCustomName, getDataTracker, getDefaultName, getDefaultNetherPortalCooldown, getDisplayName, getEffectiveExplosionResistance, getEntityId, getEntityName, getEntityWorld, getEyeHeight, getEyeHeight, getEyeY, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getHeadYaw, getHeight, getHeightOffset, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getItemsEquipped, getItemsHand, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getMaxAir, getMaxNetherPortalTime, getMinFreezeDamageTicks, getMountedHeightOffset, getMovementDirection, getName, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerDismountOffset, getPassengerList, getPassengersDeep, getPermissionLevel, getPickBlockStack, 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, isCollidable, isConnectedThroughVehicle, isCustomNameVisible, isDescending, isFireImmune, isFreezing, isGlowing, isImmuneToExplosion, isInLava, isInRange, isInsideWall, isInsideWaterOrBubbleColumn, isInSneakingPose, isInSwimmingPose, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isLiving, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isPartOf, isPlayer, isPushable, isRemoved, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSubmergedInWater, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, isWet, kill, lookAt, method_29241, method_29919, method_30076, method_30330, method_30632, method_30633, method_30634, method_30950, method_30951, method_31166, method_31473, method_31744, method_31746, method_31748, method_32318, method_32875, method_32877, method_33189, move, moveToBoundingBoxCenter, moveToWorld, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onKilledOther, onPassengerLookAround, onPlayerCollision, onSpawnPacket, 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, setFrozenTicks, setGlowing, setHeadYaw, setInNetherPortal, setInPowderSnow, setInvisible, setInvulnerable, setNoGravity, setOnFireFor, setOnFireFromLava, setOnGround, setPos, setPose, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSprinting, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, setYaw, shouldBroadcastConsoleToOps, shouldLeaveSwimmingPose, shouldReceiveFeedback, shouldRender, shouldRender, shouldRenderName, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTrackOutput, slowMovement, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, squaredHorizontalLength, startRiding, startRiding, stopRiding, streamPassengersRecursively, teleport, tickNetherPortal, tickNetherPortalCooldown, tickRiding, toListTag, toListTag, toString, toTag, unsetRemoved, updateKilledAdvancementCriterion, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSwimming, updateTrackedHeadRotation, updateTrackedPosition, updateTrackedPosition, updateTrackedPositionAndAngles, updateVelocity, updateWaterState, wouldPoseNotCollide
-
Field Details
-
LOGGER
-
RADIUS
-
COLOR
-
WAITING
-
PARTICLE_ID
-
potion
-
effects
-
affectedEntities
-
duration
private int duration -
waitTime
private int waitTime -
reapplicationDelay
private int reapplicationDelay -
customColor
private boolean customColor -
durationOnUse
private int durationOnUse -
radiusOnUse
private float radiusOnUse -
radiusGrowth
private float radiusGrowth -
owner
-
ownerUuid
-
-
Constructor Details
-
AreaEffectCloudEntity
-
AreaEffectCloudEntity
-
-
Method Details
-
initDataTracker
protected void initDataTracker()- Specified by:
initDataTrackerin classEntity
-
setRadius
public void setRadius(float radius) -
calculateDimensions
public void calculateDimensions()- Overrides:
calculateDimensionsin classEntity
-
getRadius
public float getRadius() -
setPotion
-
updateColor
private void updateColor() -
addEffect
-
getColor
public int getColor() -
setColor
public void setColor(int rgb) -
getParticleType
-
setParticleType
-
setWaiting
protected void setWaiting(boolean waiting) -
isWaiting
public boolean isWaiting() -
getDuration
public int getDuration() -
setDuration
public void setDuration(int duration) -
tick
public void tick() -
setRadiusOnUse
public void setRadiusOnUse(float radius) -
setRadiusGrowth
public void setRadiusGrowth(float growth) -
setWaitTime
public void setWaitTime(int ticks) -
setOwner
-
getOwner
-
readCustomDataFromTag
- Specified by:
readCustomDataFromTagin classEntity
-
writeCustomDataToTag
- Specified by:
writeCustomDataToTagin classEntity
-
onTrackedDataSet
- Overrides:
onTrackedDataSetin classEntity
-
getPistonBehavior
- Overrides:
getPistonBehaviorin classEntity
-
createSpawnPacket
- Specified by:
createSpawnPacketin classEntity
-
getDimensions
- Overrides:
getDimensionsin classEntity
-