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:
CommandSource,Projectile
- Mappings:
Namespace Name official abtintermediary net/minecraft/class_1000named net/minecraft/entity/thrown/PotionEntity
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final TrackedData<ItemStack>private static final Loggerstatic final Predicate<LivingEntity>Fields inherited from class net.minecraft.entity.thrown.ThrowableEntity
field_14820, inGround, shakeFields inherited from class net.minecraft.entity.Entity
changingDimension, chunkX, chunkY, chunkZ, colliding, dataTracker, dimension, distanceTraveled, fallDistance, field_3223, firstUpdate, FLAGS, height, horizontalCollision, horizontalSpeed, ignoreCameraFrustum, inanimate, inLava, isFireImmune, isGlowing, lastPortalBlockPos, lastPortalVec3d, 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 voidprotected floatgetItem()protected voidprivate static booleanisHurtByWater(LivingEntity entity) private booleanprivate voidmethod_11316(BlockPos blockPos) static voidmethod_13299(class_2934 class_2934) protected voidonCollision(BlockHitResult result) voidvoidvoidMethods inherited from class net.minecraft.entity.thrown.ThrowableEntity
getOwner, method_13295, 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, canExplosionDestroyBlock, canFly, canStartRiding, canUseCommand, canUsePortals, changeDimension, checkBlockCollision, collides, copyPosition, damage, dealDamage, destroy, distanceTo, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropItem, entityDataRequiresOperator, equals, equip, equipStack, extinguish, fall, fromNbt, getAir, getArmorItems, getBlastResistance, getBlockPos, getBoundingBox, getBox, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getCommandStats, getCustomName, getDataTracker, getDefaultNetherPortalCooldown, getEntity, getEntityId, getEntityName, getEyeHeight, getFlag, getHardCollisionBox, getHeadRotation, getHeightOffset, getHorizontalDirection, getHoverEvent, getItemsEquipped, getItemsHand, getLastNetherPortalDirection, getLastNetherPortalDirectionVector, getLightmapCoordinates, getMaxNetherPortalTime, getMinecraftServer, getMountedHeightOffset, getMovementDirection, getParts, getPassengerList, getPassengersDeep, getPassengersDeep, getPistonBehavior, getPos, getPrimaryPassenger, getRenderDistanceMultiplier, getRootVehicle, getRotation, getRotationClient, getRotationVecClient, getRotationVector, getRotationVector, getSafeFallDistance, getSavedEntityId, getScoreboardTags, getScoreboardTeam, getSoundCategory, getTargetingMargin, getTranslatedName, getUuid, getVehicle, getVisibilityBoundingBox, getWorld, handleAttack, handleFallDamage, handleStatus, hasCustomName, hashCode, hasMount, hasNoGravity, hasPassenger, hasPassengerDeep, hasPassengers, increaseTransforms, interact, interactAt, isAlive, isAttackable, isConnectedThroughVehicle, isCustomNameVisible, isFireImmune, isGlowing, isImmuneToExplosion, isInsideWall, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isOnFire, isOutsideWorldborder, isPartOf, isPushable, isSilent, isSneaking, isSpectatedBy, isSprinting, isSubmergedIn, isTeammate, isTeamPlayer, isTouchingLava, isTouchingWater, kill, method_10965, method_12984, method_12985, method_12991, method_13003, method_13932, method_6344, move, onKilledOther, onLightningStrike, onPassengerLookAround, onPlayerCollision, onStartedTrackingBy, onStoppedTrackingBy, onSwimmingStart, onTrackedDataSet, playSound, playStepSound, populateCrashReport, pushAwayFrom, pushOutOfBlocks, rayTrace, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, remove, removeAllPassengers, removePassenger, removeScoreboardTag, ride, saveSelfToNbt, saveToNbt, scheduleVelocityUpdate, sendCommandFeedback, sendMessage, setAir, setBoundingBox, setBounds, setCustomName, setCustomNameVisible, setEntityId, setFlag, setGlowing, setHeadYaw, setInLava, setInNetherPortal, setInvisible, setInvulnerable, setNoGravity, setOnFireFor, setOnFireFromLava, setOutsideWorldborder, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSprinting, setStat, setUuid, setWorld, setYaw, shouldRender, shouldRenderName, shouldSetPositionOnLoad, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, squaredDistanceToCenter, startRiding, stopRiding, teleportRequested, tickFire, tickNetherPortalCooldown, tickRiding, toListNbt, toListNbt, toNbt, toString, updateKilledAdvancementCriterion, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSubmergedInWaterState, updateTrackedPositionAndAngles, updateVelocity, updateWaterState
-
Field Details
-
ITEM
- Mappings:
Namespace Name Mixin selector official eLabt;e:Lkk;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 fLabt;f: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;
-
WATER_HURTS
- Mappings:
Namespace Name Mixin selector official dLabt;d:Lcom/google/common/base/Predicate;intermediary field_15096Lnet/minecraft/class_1000;field_15096:Lcom/google/common/base/Predicate;named WATER_HURTSLnet/minecraft/entity/thrown/PotionEntity;WATER_HURTS:Lcom/google/common/base/Predicate;
-
-
Constructor Details
-
PotionEntity
- Mappings:
Namespace Name Mixin selector official <init>Lsn;<init>(Lajs;)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>Labt;<init>(Lajs;Lsw;Lafj;)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>Labt;<init>(Lajs;DDDLafj;)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 iLsn;i()Vintermediary method_2484Lnet/minecraft/class_864;method_2484()Vnamed initDataTrackerLnet/minecraft/entity/Entity;initDataTracker()V
-
getItem
- Mappings:
Namespace Name Mixin selector official lLabt;l()Lafj;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 aLabt;a(Lafj;)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 jLabp;j()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 aLabp;a(Lbdu;)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 nLabt;n()Vintermediary method_13634Lnet/minecraft/class_1000;method_13634()Vnamed damageEntitiesHurtByWaterLnet/minecraft/entity/thrown/PotionEntity;damageEntitiesHurtByWater()V
-
applySplashPotion
- Mappings:
Namespace Name Mixin selector official aLabt;a(Lbdu;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 aLabt;a(Lafj;Lagy;)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 oLabt;o()Zintermediary method_11318Lnet/minecraft/class_1000;method_11318()Znamed isLingeringLnet/minecraft/entity/thrown/PotionEntity;isLingering()Z
-
method_11316
- Mappings:
Namespace Name Mixin selector official aLabt;a(Lco;)Vintermediary method_11316Lnet/minecraft/class_1000;method_11316(Lnet/minecraft/class_2552;)Vnamed method_11316Lnet/minecraft/entity/thrown/PotionEntity;method_11316(Lnet/minecraft/util/math/BlockPos;)V
-
method_13299
- Mappings:
Namespace Name Mixin selector official aLabt;a(Lph;)Vintermediary method_13299Lnet/minecraft/class_1000;method_13299(Lnet/minecraft/class_2934;)Vnamed method_13299Lnet/minecraft/entity/thrown/PotionEntity;method_13299(Lnet/minecraft/class_2934;)V
-
readCustomDataFromNbt
- Overrides:
readCustomDataFromNbtin classThrowableEntity- Mappings:
Namespace Name Mixin selector official aLsn;a(Ldu;)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 bLsn;b(Ldu;)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 cLabt;c(Lsw;)Zintermediary method_13633Lnet/minecraft/class_1000;method_13633(Lnet/minecraft/class_1699;)Znamed isHurtByWaterLnet/minecraft/entity/thrown/PotionEntity;isHurtByWater(Lnet/minecraft/entity/LivingEntity;)Z
-