Package net.minecraft.entity.thrown
Class PotionEntity
java.lang.Object
net.minecraft.entity.Entity
net.minecraft.entity.thrown.ThrowableEntity
net.minecraft.entity.thrown.PotionEntity
- All Implemented Interfaces:
class_3893,Projectile,Nameable
- Mappings:
Namespace Name official apdintermediary net/minecraft/class_1000named net/minecraft/entity/thrown/PotionEntity
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Predicate<LivingEntity>private static final TrackedData<ItemStack>private static final LoggerFields inherited from class net.minecraft.entity.thrown.ThrowableEntity
field_14820, field_6932, inGround, shakeFields inherited from class net.minecraft.entity.Entity
changingDimension, chunkX, chunkY, chunkZ, colliding, dataTracker, distanceTraveled, fallDistance, field_16693, field_16694, field_16696, field_3223, firstUpdate, FLAGS, height, horizontalCollision, horizontalSpeed, ignoreCameraFrustum, inanimate, inLava, isFireImmune, isGlowing, lastPortalBlockPos, lastPortalVec3d, LOGGER_, netherPortalCooldown, netherPortalTime, noClip, onGround, pitch, playerUuid, prevHorizontalSpeed, prevPitch, prevTickX, prevTickY, prevTickZ, prevX, prevY, prevYaw, prevZ, pushSpeedReduction, random, removed, ridingCooldown, stepHeight, teleportDirection, teleporting, ticksAlive, touchingWater, tracedX, tracedY, tracedZ, updateNeeded, uuidString, velocityDirty, velocityModified, velocityX, velocityY, velocityZ, verticalCollision, width, world, x, y, yaw, z -
Constructor Summary
ConstructorsConstructorDescriptionPotionEntity(World world) PotionEntity(World world, double x, double y, double z, ItemStack stack) PotionEntity(World world, LivingEntity entity, ItemStack stack) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidapplyLingeringPotion(ItemStack stack, Potion potion) private voidapplySplashPotion(BlockHitResult result, List<StatusEffectInstance> effects) private voidprivate voidextinguishFire(BlockPos pos, Direction direction) protected floatgetItem()protected voidprivate static booleanisHurtByWater(LivingEntity entity) private booleanprotected voidonCollision(BlockHitResult result) voidvoidvoidMethods inherited from class net.minecraft.entity.thrown.ThrowableEntity
getOwner, setProperties, setVelocity, setVelocityClient, shouldRender, tickMethods inherited from class net.minecraft.entity.Entity
addPassenger, addScoreboardTag, addVelocity, afterSpawn, animateDamage, applyMirror, applyRotation, attemptSprintingParticles, baseTick, burn, canAddPassenger, canAvoidTraps, canClimb, canFly, canStartRiding, canUsePortals, checkBlockCollision, collides, copyPortalInfo, copyPosition, damage, dealDamage, destroy, distanceTo, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, entityDataRequiresOperator, equals, equip, equipStack, extinguish, fall, fromNbt, getAir, getArmorItems, getBoundingBox, getBox, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getDataTracker, getDefaultNetherPortalCooldown, getEntityId, getEntityName, getEyeHeight, getFlag, getHardCollisionBox, getHeadRotation, getHeightOffset, getHorizontalDirection, getHoverEvent, getItemsEquipped, getItemsHand, getLastNetherPortalDirection, getLastNetherPortalDirectionVector, getLightmapCoordinates, getMaxNetherPortalTime, getMountedHeightOffset, getMovementDirection, getParts, getPassengerList, getPassengersDeep, getPistonBehavior, getPrimaryPassenger, getRenderDistanceMultiplier, getRootVehicle, getRotation, getRotationClient, getRotationVecClient, getRotationVector, getRotationVector, getSafeFallDistance, getSavedEntityId, getScoreboardTags, getScoreboardTeam, getSoundCategory, getTargetingMargin, getUuid, getVehicle, getVisibilityBoundingBox, handleAttack, handleFallDamage, handleStatus, hasCustomName, hashCode, hasMount, hasNoGravity, hasPassenger, hasPassengerDeep, hasPassengers, interact, interactAt, isAlive, isAttackable, isConnectedThroughVehicle, isCustomNameVisible, isFireImmune, isGlowing, isImmuneToExplosion, isInsideWall, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isOnFire, isOutsideWorldborder, isPartOf, isPushable, isSilent, isSneaking, isSpectatedBy, isSprinting, isTeammate, isTeamPlayer, isTouchingLava, isTouchingWater, kill, method_10787, method_10931, method_10932, method_10933, method_10936, method_12265, method_12833, method_12984, method_12985, method_12991, method_13003, method_15051, method_15055, method_15540, method_15541, method_15557, method_15558, method_15559, method_15560, method_15561, method_15562, method_15563, method_15564, method_15566, method_15567, method_15569, method_15570, method_15571, method_15572, method_15573, method_15574, method_15575, method_15576, method_15577, method_15578, method_15580, method_15581, method_15582, method_15583, method_15584, method_15585, method_15586, method_15588, method_15589, method_15590, method_15591, method_15592, method_15593, method_15594, method_17412, method_17413, method_17414, method_2492, method_4086, method_5505, method_5506, method_6344, move, onBlockCollision, onKilledOther, onLightningStrike, onPassengerLookAround, onPlayerCollision, onStartedTrackingBy, onStoppedTrackingBy, onSwimmingStart, onTrackedDataSet, playSound, populateCrashReport, pushAwayFrom, pushOutOfBlocks, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, remove, removeAllPassengers, removePassenger, removeScoreboardTag, ride, saveSelfToNbt, saveToNbt, scheduleVelocityUpdate, setAir, setBoundingBox, setBounds, setCustomNameVisible, setEntityId, setFlag, setGlowing, setHeadYaw, setInLava, setInNetherPortal, setInvisible, setInvulnerable, setNoGravity, setOnFireFor, setOnFireFromLava, setOutsideWorldborder, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSprinting, setUuid, setWorld, setYaw, shouldRender, shouldRenderName, shouldSetPositionOnLoad, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, squaredDistanceToCenter, startRiding, stopRiding, teleportRequested, tickFire, tickNetherPortalCooldown, tickRiding, toListNbt, toListNbt, toNbt, toString, updateKilledAchievement, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSubmergedInWaterState, updateTrackedPositionAndAngles, updateWaterState
-
Field Details
-
ITEM
- Mappings:
Namespace Name Mixin selector official fLapd;f:Lor;intermediary field_12206Lnet/minecraft/class_1000;field_12206:Lnet/minecraft/class_2921;named ITEMLnet/minecraft/entity/thrown/PotionEntity;ITEM:Lnet/minecraft/entity/data/TrackedData;
-
LOGGER
- Mappings:
Namespace Name Mixin selector official gLapd;g:Lorg/apache/logging/log4j/Logger;intermediary field_12207Lnet/minecraft/class_1000;field_12207:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/entity/thrown/PotionEntity;LOGGER:Lorg/apache/logging/log4j/Logger;
-
field_17102
- Mappings:
Namespace Name Mixin selector official eLapd;e:Ljava/util/function/Predicate;intermediary field_17102Lnet/minecraft/class_1000;field_17102:Ljava/util/function/Predicate;named field_17102Lnet/minecraft/entity/thrown/PotionEntity;field_17102:Ljava/util/function/Predicate;
-
-
Constructor Details
-
PotionEntity
- Mappings:
Namespace Name Mixin selector official <init>Laer;<init>(Laxy;)Vintermediary <init>Lnet/minecraft/class_864;<init>(Lnet/minecraft/class_1150;)Vnamed <init>Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/world/World;)V
-
PotionEntity
- Mappings:
Namespace Name Mixin selector official <init>Lapd;<init>(Laxy;Lafa;Late;)Vintermediary <init>Lnet/minecraft/class_1000;<init>(Lnet/minecraft/class_1150;Lnet/minecraft/class_1699;Lnet/minecraft/class_1071;)Vnamed <init>Lnet/minecraft/entity/thrown/PotionEntity;<init>(Lnet/minecraft/world/World;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/item/ItemStack;)V
-
PotionEntity
- Mappings:
Namespace Name Mixin selector official <init>Lapd;<init>(Laxy;DDDLate;)Vintermediary <init>Lnet/minecraft/class_1000;<init>(Lnet/minecraft/class_1150;DDDLnet/minecraft/class_1071;)Vnamed <init>Lnet/minecraft/entity/thrown/PotionEntity;<init>(Lnet/minecraft/world/World;DDDLnet/minecraft/item/ItemStack;)V
-
-
Method Details
-
initDataTracker
protected void initDataTracker()- Overrides:
initDataTrackerin classThrowableEntity- Mappings:
Namespace Name Mixin selector official x_Laer;x_()Vintermediary method_2484Lnet/minecraft/class_864;method_2484()Vnamed initDataTrackerLnet/minecraft/entity/Entity;initDataTracker()V
-
getItem
- Mappings:
Namespace Name Mixin selector official kLapd;k()Late;intermediary method_11317Lnet/minecraft/class_1000;method_11317()Lnet/minecraft/class_1071;named getItemLnet/minecraft/entity/thrown/PotionEntity;getItem()Lnet/minecraft/item/ItemStack;
-
setItem
- Mappings:
Namespace Name Mixin selector official bLapd;b(Late;)Vintermediary method_11315Lnet/minecraft/class_1000;method_11315(Lnet/minecraft/class_1071;)Vnamed setItemLnet/minecraft/entity/thrown/PotionEntity;setItem(Lnet/minecraft/item/ItemStack;)V
-
getGravity
protected float getGravity()- Overrides:
getGravityin classThrowableEntity- Mappings:
Namespace Name Mixin selector official fLaoz;f()Fintermediary method_3236Lnet/minecraft/class_996;method_3236()Fnamed getGravityLnet/minecraft/entity/thrown/ThrowableEntity;getGravity()F
-
onCollision
- Specified by:
onCollisionin classThrowableEntity- Mappings:
Namespace Name Mixin selector official aLaoz;a(Lceb;)Vintermediary method_3232Lnet/minecraft/class_996;method_3232(Lnet/minecraft/class_234;)Vnamed onCollisionLnet/minecraft/entity/thrown/ThrowableEntity;onCollision(Lnet/minecraft/util/hit/BlockHitResult;)V
-
damageEntitiesHurtByWater
private void damageEntitiesHurtByWater()- Mappings:
Namespace Name Mixin selector official lLapd;l()Vintermediary method_13634Lnet/minecraft/class_1000;method_13634()Vnamed damageEntitiesHurtByWaterLnet/minecraft/entity/thrown/PotionEntity;damageEntitiesHurtByWater()V
-
applySplashPotion
- Mappings:
Namespace Name Mixin selector official aLapd;a(Lceb;Ljava/util/List;)Vintermediary method_13631Lnet/minecraft/class_1000;method_13631(Lnet/minecraft/class_234;Ljava/util/List;)Vnamed applySplashPotionLnet/minecraft/entity/thrown/PotionEntity;applySplashPotion(Lnet/minecraft/util/hit/BlockHitResult;Ljava/util/List;)V
-
applyLingeringPotion
- Mappings:
Namespace Name Mixin selector official aLapd;a(Late;Laut;)Vintermediary method_13630Lnet/minecraft/class_1000;method_13630(Lnet/minecraft/class_1071;Lnet/minecraft/class_2695;)Vnamed applyLingeringPotionLnet/minecraft/entity/thrown/PotionEntity;applyLingeringPotion(Lnet/minecraft/item/ItemStack;Lnet/minecraft/potion/Potion;)V
-
isLingering
private boolean isLingering()- Mappings:
Namespace Name Mixin selector official mLapd;m()Zintermediary method_11318Lnet/minecraft/class_1000;method_11318()Znamed isLingeringLnet/minecraft/entity/thrown/PotionEntity;isLingering()Z
-
extinguishFire
- Mappings:
Namespace Name Mixin selector official aLapd;a(Lel;Leq;)Vintermediary method_14194Lnet/minecraft/class_1000;method_14194(Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;)Vnamed extinguishFireLnet/minecraft/entity/thrown/PotionEntity;extinguishFire(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)V
-
readCustomDataFromNbt
- Overrides:
readCustomDataFromNbtin classThrowableEntity- Mappings:
Namespace Name Mixin selector official aLaer;a(Lgy;)Vintermediary method_2498Lnet/minecraft/class_864;method_2498(Lnet/minecraft/class_322;)Vnamed readCustomDataFromNbtLnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
writeCustomDataToNbt
- Overrides:
writeCustomDataToNbtin classThrowableEntity- Mappings:
Namespace Name Mixin selector official bLaer;b(Lgy;)Vintermediary method_2528Lnet/minecraft/class_864;method_2528(Lnet/minecraft/class_322;)Vnamed writeCustomDataToNbtLnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
isHurtByWater
- Mappings:
Namespace Name Mixin selector official aLapd;a(Lafa;)Zintermediary method_13633Lnet/minecraft/class_1000;method_13633(Lnet/minecraft/class_1699;)Znamed isHurtByWaterLnet/minecraft/entity/thrown/PotionEntity;isHurtByWater(Lnet/minecraft/entity/LivingEntity;)Z
-