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
public class PotionEntity extends ThrowableEntity
- Mappings:
Namespace Name official xcintermediary net/minecraft/class_1980named net/minecraft/entity/thrown/PotionEntity
-
Field Summary
Fields inherited from class net.minecraft.entity.thrown.ThrowableEntity
inGround, shakeFields inherited from class net.minecraft.entity.Entity
changingDimension, colliding, dataTracker, dimension, distanceTraveled, fallDistance, field_7357, field_7362, field_7363, field_7364, field_7365, field_7370, field_7390, fireResistance, firstUpdate, height, horizontalCollision, horizontalSpeed, ignoreCameraFrustum, inLava, isFireImmune, lastPortalBlockPos, lastPortalVec3d, netherPortalCooldown, noClip, onGround, pitch, playerUuid, prevHorizontalSpeed, prevPitch, prevTickX, prevTickY, prevTickZ, prevX, prevY, prevYaw, prevZ, pushSpeedReduction, random, removed, renderDistanceMultiplier, rider, stepHeight, teleportDirection, teleporting, ticksAlive, touchingWater, trackedX, trackedY, trackedZ, vehicle, velocityDirty, velocityModified, velocityX, velocityY, velocityZ, verticalCollision, width, world, x, y, yaw, z -
Constructor Summary
Constructors Constructor Description PotionEntity(World world)PotionEntity(World world, double x, double y, double z, int id)PotionEntity(World world, double x, double y, double z, ItemStack stack)PotionEntity(World world, LivingEntity entity, int id)PotionEntity(World world, LivingEntity entity, ItemStack stack) -
Method Summary
Modifier and Type Method Description voiddeserialize(CompoundTag tag)protected floatgetGravity()protected floatmethod_8069()protected floatmethod_8070()intmethod_8078()protected voidonCollision(HitResult result)voidserialize(CompoundTag tag)voidsetPotionValue(int int2)Methods inherited from class net.minecraft.entity.thrown.ThrowableEntity
initDataTracker, method_8072, setVelocity, setVelocityClient, shouldRender, tickMethods inherited from class net.minecraft.entity.Entity
addVelocity, afterSpawn, animateDamage, attemptSprintingParticles, baseTick, burn, canAvoidTraps, canClimb, canFly, canUseCommand, checkBlockCollision, collides, copyPortalInfo, copyPosition, damage, destroy, doesNotCollide, doesRenderOnFire, equals, equip, extinguish, fall, fromClientTag, fromTag, getAir, getArmorStacks, getBlastResistance, getBlockPos, getBoundingBox, getBox, getCameraPosVec, getCommandStats, getCustomName, getDataTracker, getDefaultNetherPortalCooldown, getDistanceTo, getEntity, getEntityId, getEyeHeight, getFlag, getHardCollisionBox, getHeadRotation, getHeightOffset, getHorizontalDirection, getHoverEvent, getLastNetherPortalDirection, getLastNetherPortalDirectionVector, getMaxNetherPortalTime, getMountedHeightOffset, getName, getPos, getRotationVector, getRotationVector, getSafeFallDistance, getSavedEntityId, getSplashSound, getSwimSound, getTranslationKey, getUuid, getWorld, handleAttack, handleFallDamage, handleStatus, hasCustomName, hashCode, hasVehicle, increaseTransforms, interactAt, isAlive, isAttackable, isCustomNameVisible, isFireImmune, isImmuneToExplosion, isInsideWall, isInvisible, isInvisibleTo, isInvulnerableTo, isOnFire, isOutsideWorldborder, isPartOf, isPushable, isSilent, isSneaking, isSpectatedBy, isSprinting, isSubmergedIn, isTouchingWater, kill, method_6912, method_6924, method_6926, method_6939, method_6940, method_6943, method_6944, method_6945, method_6948, method_6949, method_6968, method_6971, method_6977, method_6981, method_6984, method_6985, method_6994, method_6998, method_7008, method_7020, method_7049, method_7051, method_7058, move, onLightningStrike, onPlayerCollision, onSwimmingStart, openInventory, playSound, playStepSound, populateCrashReport, pushAwayFrom, rayTrace, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, remove, saveSelfToTag, scheduleVelocityUpdate, sendCommandFeedback, sendMessage, setAir, setArmorSlot, setBoundingBox, setBounds, setCustomName, setCustomNameVisible, setEntityId, setFlag, setHeadYaw, setInNetherPortal, setInvisible, setOnFireFor, setOnFireFromLava, setOutsideWorldborder, setRotation, setSilent, setSneaking, setSprinting, setStat, setSwimming, setWorld, setYaw, shouldRender, shouldRenderName, shouldSetPositionOnLoad, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, squaredDistanceToCenter, squaredDistanceToEntity, startRiding, teleportToDimension, tickFire, tickRiding, toListTag, toListTag, toString, updateKilledAdvancementCriterion, updatePosition, updatePositionAndAngles, updateTrackedPositionAndAngles, writePlayerData
-
Field Details
-
stack
- Mappings:
Namespace Name Mixin selector official cLxc;c:Lzx;intermediary field_8432Lnet/minecraft/class_1980;field_8432:Lnet/minecraft/class_2056;named stackLnet/minecraft/entity/thrown/PotionEntity;stack:Lnet/minecraft/item/ItemStack;
-
-
Constructor Details
-
PotionEntity
- Mappings:
Namespace Name Mixin selector official <init>Lpk;<init>(Ladm;)Vintermediary <init>Lnet/minecraft/class_1745;<init>(Lnet/minecraft/class_99;)Vnamed <init>Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/world/World;)V
-
PotionEntity
- Mappings:
Namespace Name Mixin selector official <init>Lxc;<init>(Ladm;Lpr;I)Vintermediary <init>Lnet/minecraft/class_1980;<init>(Lnet/minecraft/class_99;Lnet/minecraft/class_1752;I)Vnamed <init>Lnet/minecraft/entity/thrown/PotionEntity;<init>(Lnet/minecraft/world/World;Lnet/minecraft/entity/LivingEntity;I)V
-
PotionEntity
- Mappings:
Namespace Name Mixin selector official <init>Lxc;<init>(Ladm;Lpr;Lzx;)Vintermediary <init>Lnet/minecraft/class_1980;<init>(Lnet/minecraft/class_99;Lnet/minecraft/class_1752;Lnet/minecraft/class_2056;)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>Lxc;<init>(Ladm;DDDI)Vintermediary <init>Lnet/minecraft/class_1980;<init>(Lnet/minecraft/class_99;DDDI)Vnamed <init>Lnet/minecraft/entity/thrown/PotionEntity;<init>(Lnet/minecraft/world/World;DDDI)V
-
PotionEntity
- Mappings:
Namespace Name Mixin selector official <init>Lxc;<init>(Ladm;DDDLzx;)Vintermediary <init>Lnet/minecraft/class_1980;<init>(Lnet/minecraft/class_99;DDDLnet/minecraft/class_2056;)Vnamed <init>Lnet/minecraft/entity/thrown/PotionEntity;<init>(Lnet/minecraft/world/World;DDDLnet/minecraft/item/ItemStack;)V
-
-
Method Details
-
getGravity
protected float getGravity()- Overrides:
getGravityin classThrowableEntity- Mappings:
Namespace Name Mixin selector official mLwy;m()Fintermediary method_8071Lnet/minecraft/class_1975;method_8071()Fnamed getGravityLnet/minecraft/entity/thrown/ThrowableEntity;getGravity()F
-
method_8069
protected float method_8069()- Overrides:
method_8069in classThrowableEntity- Mappings:
Namespace Name Mixin selector official jLwy;j()Fintermediary method_8069Lnet/minecraft/class_1975;method_8069()Fnamed method_8069Lnet/minecraft/entity/thrown/ThrowableEntity;method_8069()F
-
method_8070
protected float method_8070()- Overrides:
method_8070in classThrowableEntity- Mappings:
Namespace Name Mixin selector official lLwy;l()Fintermediary method_8070Lnet/minecraft/class_1975;method_8070()Fnamed method_8070Lnet/minecraft/entity/thrown/ThrowableEntity;method_8070()F
-
setPotionValue
public void setPotionValue(int int2)- Mappings:
Namespace Name Mixin selector official aLxc;a(I)Vintermediary method_8077Lnet/minecraft/class_1980;method_8077(I)Vnamed setPotionValueLnet/minecraft/entity/thrown/PotionEntity;setPotionValue(I)V
-
method_8078
public int method_8078()- Mappings:
Namespace Name Mixin selector official oLxc;o()Iintermediary method_8078Lnet/minecraft/class_1980;method_8078()Inamed method_8078Lnet/minecraft/entity/thrown/PotionEntity;method_8078()I
-
onCollision
- Specified by:
onCollisionin classThrowableEntity- Mappings:
Namespace Name Mixin selector official aLwy;a(Lauh;)Vintermediary method_8068Lnet/minecraft/class_1975;method_8068(Lnet/minecraft/class_647;)Vnamed onCollisionLnet/minecraft/entity/thrown/ThrowableEntity;onCollision(Lnet/minecraft/util/hit/HitResult;)V
-
deserialize
- Overrides:
deserializein classThrowableEntity- Mappings:
Namespace Name Mixin selector official aLpk;a(Ldn;)Vintermediary method_6933Lnet/minecraft/class_1745;method_6933(Lnet/minecraft/class_1405;)Vnamed deserializeLnet/minecraft/entity/Entity;deserialize(Lnet/minecraft/nbt/CompoundTag;)V
-
serialize
- Overrides:
serializein classThrowableEntity- Mappings:
Namespace Name Mixin selector official bLpk;b(Ldn;)Vintermediary method_7003Lnet/minecraft/class_1745;method_7003(Lnet/minecraft/class_1405;)Vnamed serializeLnet/minecraft/entity/Entity;serialize(Lnet/minecraft/nbt/CompoundTag;)V
-