Class PotionEntity
java.lang.Object
net.minecraft.entity.Entity
net.minecraft.entity.projectile.ProjectileEntity
net.minecraft.entity.projectile.thrown.ThrownEntity
net.minecraft.entity.projectile.thrown.ThrownItemEntity
net.minecraft.entity.projectile.thrown.PotionEntity
- All Implemented Interfaces:
EntityLike,FlyingItemEntity,CommandOutput,Nameable
@EnvironmentInterfaces(@EnvironmentInterface(value=CLIENT,itf=FlyingItemEntity.class)) public class PotionEntity extends ThrownItemEntity implements FlyingItemEntity
- Mappings:
Namespace Name official bimintermediary net/minecraft/class_1686named net/minecraft/entity/projectile/thrown/PotionEntity
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.class_5799, Entity.PositionUpdater, Entity.RemovalReason -
Field Summary
Fields Modifier and Type Field Description static Predicate<LivingEntity>WATER_HURTSFields inherited from class net.minecraft.entity.Entity
age, dataTracker, distanceTraveled, fallDistance, field_28627, field_28629, firstUpdate, FLAGS, fluidHeight, glowing, horizontalCollision, horizontalSpeed, ignoreCameraFrustum, inanimate, inNetherPortal, inPowderSnow, lastNetherPortalPosition, lastRenderX, lastRenderY, lastRenderZ, LOGGER, movementMultiplier, netherPortalTime, noClip, onGround, pitch, POSE, prevHorizontalSpeed, prevPitch, prevX, prevY, prevYaw, prevZ, pushSpeedReduction, random, ridingCooldown, stepHeight, submergedFluidTag, submergedInWater, timeUntilRegen, touchingWater, uuid, uuidString, velocityDirty, velocityModified, verticalCollision, wasInPowderSnow, world, yawFields inherited from interface net.minecraft.server.command.CommandOutput
DUMMY -
Constructor Summary
Constructors Constructor Description PotionEntity(EntityType<? extends PotionEntity> type, World world)PotionEntity(World world, double x, double y, double z)PotionEntity(World world, LivingEntity owner) -
Method Summary
Modifier and Type Method Description private voidapplyLingeringPotion(ItemStack stack, Potion potion)private voidapplySplashPotion(List<StatusEffectInstance> statusEffects, Entity entity)private voiddamageEntitiesHurtByWater()private voidextinguishFire(BlockPos pos, Direction direction)protected ItemgetDefaultItem()protected floatgetGravity()private booleanisLingering()protected voidonBlockHit(BlockHitResult blockHitResult)protected voidonCollision(HitResult hitResult)Methods inherited from class net.minecraft.entity.projectile.thrown.ThrownItemEntity
getItem, getStack, initDataTracker, readCustomDataFromTag, setItem, writeCustomDataToTagMethods inherited from class net.minecraft.entity.projectile.thrown.ThrownEntity
shouldRender, tickMethods inherited from class net.minecraft.entity.projectile.ProjectileEntity
canHit, createSpawnPacket, getOwner, onEntityHit, onSpawnPacket, setOwner, setProperties, setVelocity, setVelocityClient, updateRotation, updateRotationMethods inherited from class net.minecraft.entity.Entity
addPassenger, addScoreboardTag, addVelocity, adjustMovementForCollisions, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, adjustSingleAxisMovementForCollisions, animateDamage, applyMirror, applyRotation, attemptTickInVoid, baseTick, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundsForPose, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeRiddenInWater, canBeSpectated, canExplosionDestroyBlock, canFly, canFreeze, canStartRiding, canUsePortals, changeLookDirection, checkBlockCollision, checkDespawn, collides, collidesWith, collidesWithStateAtPos, copyFrom, copyPositionAndRotation, damage, dealDamage, detach, discard, dismountVehicle, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, emitGameEvent, emitGameEvent, entityDataRequiresOperator, equals, equipStack, extinguish, fall, fromTag, getAir, getArmorItems, getBlockPos, getBlockX, getBlockY, getBlockZ, getBodyY, getBoundingBox, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getChunkPos, getClientCameraPosVec, getCommandSource, getCustomName, getDataTracker, getDefaultName, getDefaultNetherPortalCooldown, getDimensions, getDisplayName, getEffectiveExplosionResistance, getEntityName, getEntityWorld, getEyeHeight, getEyeHeight, getEyeY, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getHeadYaw, getHeight, getHeightOffset, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getItemsEquipped, getItemsHand, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLerpedPos, getMaxAir, getMaxNetherPortalTime, getMinFreezeDamageTicks, getMountedHeightOffset, getMovementDirection, getName, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerDismountOffset, getPassengerList, getPassengersDeep, getPermissionLevel, getPickBlockStack, getPistonBehavior, 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_30330, method_30633, method_30951, method_31744, method_32318, method_32877, method_33332, method_33567, method_33568, method_33569, method_33570, method_33571, method_33573, method_33574, method_33575, move, moveToWorld, occludeVibrationSignals, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onKilledOther, onPassengerLookAround, onPlayerCollision, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, onTrackedDataSet, playFlySound, playSound, playStepSound, playSwimSound, populateCrashReport, pushAwayFrom, pushOutOfBlocks, raycast, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, remove, removeAllPassengers, removeFromDimension, removePassenger, removeScoreboardTag, requestTeleport, resetNetherPortalCooldown, resetPosition, saveSelfToTag, saveToTag, scheduleVelocityUpdate, sendSystemMessage, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setEntityId, setFireTicks, setFlag, setFrozenTicks, setGlowing, setHeadYaw, setInNetherPortal, setInPowderSnow, setInvisible, setInvulnerable, setNoGravity, setOnFire, setOnFireFor, setOnFireFromLava, setOnGround, setPos, setPose, setPosition, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSprinting, setSwimming, setUuid, setVelocity, setVelocity, setYaw, shouldBroadcastConsoleToOps, shouldLeaveSwimmingPose, shouldReceiveFeedback, shouldRender, shouldRenderName, shouldSave, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTrackOutput, slowMovement, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, squaredHorizontalLength, startRiding, startRiding, stopRiding, streamPassengers, streamPassengersRecursively, teleport, tickInVoid, tickNetherPortal, tickNetherPortalCooldown, tickRiding, toListTag, toListTag, toString, toTag, unsetRemoved, updateKilledAdvancementCriterion, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSwimming, updateTrackedHeadRotation, updateTrackedPosition, updateTrackedPosition, updateTrackedPositionAndAngles, updateVelocity, updateWaterState, wouldPoseNotCollideMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.entity.FlyingItemEntity
getStack
-
Field Details
-
WATER_HURTS
- Mappings:
Namespace Name Mixin selector official bLbim;b:Ljava/util/function/Predicate;intermediary field_7653Lnet/minecraft/class_1686;field_7653:Ljava/util/function/Predicate;named WATER_HURTSLnet/minecraft/entity/projectile/thrown/PotionEntity;WATER_HURTS:Ljava/util/function/Predicate;
-
-
Constructor Details
-
PotionEntity
- Mappings:
Namespace Name Mixin selector official <init>Laqv;<init>(Laqz;Lbtv;)Vintermediary <init>Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)Vnamed <init>Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
-
PotionEntity
- Mappings:
Namespace Name Mixin selector official <init>Lbim;<init>(Lbtv;Lari;)Vintermediary <init>Lnet/minecraft/class_1686;<init>(Lnet/minecraft/class_1937;Lnet/minecraft/class_1309;)Vnamed <init>Lnet/minecraft/entity/projectile/thrown/PotionEntity;<init>(Lnet/minecraft/world/World;Lnet/minecraft/entity/LivingEntity;)V
-
PotionEntity
- Mappings:
Namespace Name Mixin selector official <init>Lbim;<init>(Lbtv;DDD)Vintermediary <init>Lnet/minecraft/class_1686;<init>(Lnet/minecraft/class_1937;DDD)Vnamed <init>Lnet/minecraft/entity/projectile/thrown/PotionEntity;<init>(Lnet/minecraft/world/World;DDD)V
-
-
Method Details
-
getDefaultItem
- Specified by:
getDefaultItemin classThrownItemEntity- Mappings:
Namespace Name Mixin selector official hLbih;h()Lbnr;intermediary method_16942Lnet/minecraft/class_3857;method_16942()Lnet/minecraft/class_1792;named getDefaultItemLnet/minecraft/entity/projectile/thrown/ThrownItemEntity;getDefaultItem()Lnet/minecraft/item/Item;
-
getGravity
protected float getGravity()- Overrides:
getGravityin classThrownEntity- Mappings:
Namespace Name Mixin selector official kLbii;k()Fintermediary method_7490Lnet/minecraft/class_1682;method_7490()Fnamed getGravityLnet/minecraft/entity/projectile/thrown/ThrownEntity;getGravity()F
-
onBlockHit
- Overrides:
onBlockHitin classProjectileEntity- Mappings:
Namespace Name Mixin selector official aLbib;a(Ldiq;)Vintermediary method_24920Lnet/minecraft/class_1676;method_24920(Lnet/minecraft/class_3965;)Vnamed onBlockHitLnet/minecraft/entity/projectile/ProjectileEntity;onBlockHit(Lnet/minecraft/util/hit/BlockHitResult;)V
-
onCollision
- Overrides:
onCollisionin classProjectileEntity- Mappings:
Namespace Name Mixin selector official aLbib;a(Ldis;)Vintermediary method_7488Lnet/minecraft/class_1676;method_7488(Lnet/minecraft/class_239;)Vnamed onCollisionLnet/minecraft/entity/projectile/ProjectileEntity;onCollision(Lnet/minecraft/util/hit/HitResult;)V
-
damageEntitiesHurtByWater
private void damageEntitiesHurtByWater()- Mappings:
Namespace Name Mixin selector official mLbim;m()Vintermediary method_7500Lnet/minecraft/class_1686;method_7500()Vnamed damageEntitiesHurtByWaterLnet/minecraft/entity/projectile/thrown/PotionEntity;damageEntitiesHurtByWater()V
-
applySplashPotion
- Mappings:
Namespace Name Mixin selector official aLbim;a(Ljava/util/List;Laqv;)Vintermediary method_7498Lnet/minecraft/class_1686;method_7498(Ljava/util/List;Lnet/minecraft/class_1297;)Vnamed applySplashPotionLnet/minecraft/entity/projectile/thrown/PotionEntity;applySplashPotion(Ljava/util/List;Lnet/minecraft/entity/Entity;)V
-
applyLingeringPotion
- Mappings:
Namespace Name Mixin selector official aLbim;a(Lbnv;Lbpq;)Vintermediary method_7497Lnet/minecraft/class_1686;method_7497(Lnet/minecraft/class_1799;Lnet/minecraft/class_1842;)Vnamed applyLingeringPotionLnet/minecraft/entity/projectile/thrown/PotionEntity;applyLingeringPotion(Lnet/minecraft/item/ItemStack;Lnet/minecraft/potion/Potion;)V
-
isLingering
private boolean isLingering()- Mappings:
Namespace Name Mixin selector official nLbim;n()Zintermediary method_7501Lnet/minecraft/class_1686;method_7501()Znamed isLingeringLnet/minecraft/entity/projectile/thrown/PotionEntity;isLingering()Z
-
extinguishFire
- Mappings:
Namespace Name Mixin selector official aLbim;a(Lfx;Lgc;)Vintermediary method_7499Lnet/minecraft/class_1686;method_7499(Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)Vnamed extinguishFireLnet/minecraft/entity/projectile/thrown/PotionEntity;extinguishFire(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)V
-