Class PersistentProjectileEntity
- All Implemented Interfaces:
- Ownable,- CommandOutput,- Nameable,- EntityLike
- Direct Known Subclasses:
- ArrowEntity,- SpectralArrowEntity,- TridentEntity
- Mappings:
- Namespace - Name - official - byu- intermediary - net/minecraft/class_1665- named - net/minecraft/entity/projectile/PersistentProjectileEntity
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class net.minecraft.entity.EntityEntity.MoveEffect, Entity.PositionUpdater, Entity.RemovalReason
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final intprivate doubleprivate static final doubleprivate @Nullable BlockStateprotected booleanprotected intprivate intprivate static final intprivate static final TrackedData<Byte>private @Nullable IntOpenHashSetprivate static final TrackedData<Byte>private intintprivate static final intprivate SoundEventFields inherited from class net.minecraft.entity.Entityage, collidedSoftly, dataTracker, DEFAULT_FRICTION, DEFAULT_MIN_FREEZE_DAMAGE_TICKS, DEFAULT_PORTAL_COOLDOWN, distanceTraveled, FALL_FLYING_FLAG_INDEX, fallDistance, field_29991, field_44870, field_44871, field_44872, firstUpdate, FLAGS, fluidHeight, FREEZING_DAMAGE_INTERVAL, GLOWING_FLAG_INDEX, groundCollision, horizontalCollision, horizontalSpeed, ID_KEY, ignoreCameraFrustum, inNetherPortal, inPowderSnow, intersectionChecked, lastNetherPortalPosition, lastRenderX, lastRenderY, lastRenderZ, MAX_COMMAND_TAGS, MAX_RIDING_COOLDOWN, MIN_RISING_BUBBLE_COLUMN_SPEED, movementMultiplier, netherPortalTime, noClip, ON_FIRE_FLAG_INDEX, PASSENGERS_KEY, POSE, prevHorizontalSpeed, prevPitch, prevX, prevY, prevYaw, prevZ, random, ridingCooldown, speed, submergedInWater, supportingBlockPos, timeUntilRegen, touchingWater, uuid, UUID_KEY, uuidString, velocityDirty, velocityModified, verticalCollision, wasInPowderSnow, wasOnFireFields inherited from interface net.minecraft.server.command.CommandOutputDUMMY
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedPersistentProjectileEntity(EntityType<? extends PersistentProjectileEntity> type, double x, double y, double z, World world) protectedPersistentProjectileEntity(EntityType<? extends PersistentProjectileEntity> type, LivingEntity owner, World world) protectedPersistentProjectileEntity(EntityType<? extends PersistentProjectileEntity> type, World world) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidage()voidapplyEnchantmentEffects(LivingEntity entity, float damageModifier) protected abstract ItemStackprotected booleanprivate voidprivate voidfall()doubleprotected floatprotected @Nullable EntityHitResultgetEntityCollision(Vec3d currentPosition, Vec3d nextPosition) protected floatgetEyeHeight(EntityPose pose, EntityDimensions dimensions) protected SoundEventprotected Entity.MoveEffectReturns the possible effect(s) of an entity moving.byteintgetPunch()protected final SoundEventgetSound()protected voidInitializes data tracker.booleanReturns whether the entity can be attacked by players.booleanbooleanisNoClip()booleanvoidmove(MovementType movementType, Vec3d movement) protected voidonBlockHit(BlockHitResult blockHitResult) protected voidonEntityHit(EntityHitResult entityHitResult) protected voidonHit(LivingEntity target) voidonPlayerCollision(PlayerEntity player) Called when a player collides with the entity.voidReads custom data fromnbt.voidsetCritical(boolean critical) voidsetDamage(double damage) voidsetNoClip(boolean noClip) voidvoidsetPierceLevel(byte level) private voidsetProjectileFlag(int index, boolean flag) voidsetPunch(int punch) voidsetShotFromCrossbow(boolean shotFromCrossbow) voidsetSound(SoundEvent sound) voidsetVelocity(double x, double y, double z, float speed, float divergence) Sets velocity and updates rotation accordingly.voidsetVelocityClient(double x, double y, double z) private booleanbooleanshouldRender(double distance) voidtick()Ticks this entity.protected booleantryPickup(PlayerEntity player) voidupdateTrackedPositionAndAngles(double x, double y, double z, float yaw, float pitch, int interpolationSteps, boolean interpolate) voidWrites custom data tonbt.Methods inherited from class net.minecraft.entity.projectile.ProjectileEntitycanModifyAt, createSpawnPacket, getEffectCause, getOwner, isOwner, onCollision, onSpawnPacket, setVelocity, updateRotation, updateRotationMethods inherited from class net.minecraft.entity.EntityaddAirTravelEffects, addCommandTag, addFlapEffects, addPassenger, addVelocity, addVelocity, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, animateDamage, applyDamageEffects, applyMirror, applyRotation, attemptTickInVoid, baseTick, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundingBox, calculateBoundsForPose, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeHitByProjectile, canBeSpectated, canExplosionDestroyBlock, canFreeze, canHit, canMoveVoluntarily, canSprintAsVehicle, canStartRiding, canUsePortals, changeLookDirection, checkBlockCollision, checkDespawn, collidesWith, collidesWithStateAtPos, copyFrom, copyPositionAndRotation, couldAcceptPassenger, damage, detach, discard, dismountVehicle, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, emitGameEvent, emitGameEvent, entityDataRequiresOperator, equals, equipStack, extinguish, extinguishWithSound, fall, getAir, getArmorItems, getBlockPos, getBlockStateAtPos, getBlockX, getBlockY, getBlockZ, getBodyY, getBodyYaw, getBoundingBox, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getChunkPos, getClientCameraPosVec, getCommandSource, getCommandTags, getControllingPassenger, getControllingVehicle, getCustomName, getDamageSources, getDataTracker, getDefaultName, getDefaultPortalCooldown, getDimensions, getDisplayName, getEffectiveExplosionResistance, getEntityName, getEntityWorld, getEyeHeight, getEyePos, getEyeY, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getHandItems, getHandPosOffset, getHeadYaw, getHeight, getHeightOffset, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getItemsEquipped, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLeashOffset, getLeashOffset, getLeashPos, getLerpedPos, getMaxAir, getMaxNetherPortalTime, getMinFreezeDamageTicks, getMountedHeightOffset, getMovementDirection, getName, getNameLabelHeight, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerDismountOffset, getPassengerList, getPassengersDeep, getPermissionLevel, getPickBlockStack, getPistonBehavior, getPitch, getPitch, getPortalCooldown, getPortalRect, getPos, getPose, getPosWithYOffset, getRandomBodyY, getRemovalReason, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSafeFallDistance, getSavedEntityId, getScoreboardTeam, getServer, getSoundCategory, getSplashSound, getStackReference, getStandingEyeHeight, getStepHeight, getSteppingBlockState, getSteppingPos, getStepSoundPos, getSwimHeight, getSwimSound, getSyncedPos, getTargetingMargin, getTeamColorValue, getTeleportTarget, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVelocity, getVelocityAffectingPos, getVelocityMultiplier, getVisibilityBoundingBox, getWidth, getWorld, getX, getY, getYaw, getYaw, getZ, handleAttack, handleFallDamage, handleStatus, hasCollidedSoftly, hasControllingPassenger, hasCustomName, hashCode, hasNoGravity, hasPassenger, hasPassenger, hasPassengerDeep, hasPassengers, hasPermissionLevel, hasPlayerRider, hasPortalCooldown, hasVehicle, interact, interactAt, isAlive, isCollidable, isConnectedThroughVehicle, isCrawling, isCustomNameVisible, isDescending, isFireImmune, isFlappingWings, isFrozen, isGlowing, isGlowingLocal, isImmuneToExplosion, isInLava, isInPose, isInRange, isInRange, isInsideWall, isInsideWaterOrBubbleColumn, isInSneakingPose, isInSwimmingPose, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isLiving, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isOnRail, isPartOf, isPlayer, isPushable, isPushedByFluids, isRegionUnloaded, isRemoved, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSubmergedInWater, isSupportedBy, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, isWet, kill, limitFallDistance, lookAt, moveToWorld, occludeVibrationSignals, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onDamaged, onDataTrackerUpdate, onKilledOther, onLanding, onPassengerLookAround, onRemoved, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, onTrackedDataSet, playCombinationStepSounds, playExtinguishSound, playSecondaryStepSound, playSound, playSoundIfNotSilent, playStepSound, playSwimSound, playSwimSound, populateCrashReport, positionInPortal, pushAwayFrom, pushOutOfBlocks, raycast, readNbt, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, reinitDimensions, remove, removeAllPassengers, removeFromDimension, removePassenger, removeScoreboardTag, requestTeleport, requestTeleportAndDismount, requestTeleportOffset, resetPortalCooldown, resetPosition, saveNbt, saveSelfNbt, scheduleVelocityUpdate, sendMessage, setAir, setBodyYaw, setBoundingBox, setChangeListener, setCustomName, setCustomNameVisible, setFireTicks, setFlag, setFrozenTicks, setGlowing, setHeadYaw, setId, setInNetherPortal, setInPowderSnow, setInvisible, setInvulnerable, setNoGravity, setOnFire, setOnFireFor, setOnFireFromLava, setOnGround, setOnGround, setPitch, setPortalCooldown, setPos, setPose, setPosition, setPosition, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSprinting, setStepHeight, setSwimming, setUuid, setVelocity, setVelocity, setWorld, setYaw, shouldBroadcastConsoleToOps, shouldDismountUnderwater, shouldEscapePowderSnow, shouldReceiveFeedback, shouldRender, shouldRenderName, shouldSave, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTrackOutput, slowMovement, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, startRiding, startRiding, stopRiding, streamPassengersAndSelf, streamSelfAndPassengers, teleport, teleport, tickInVoid, tickPortal, tickPortalCooldown, tickRiding, toNbtList, toNbtList, toString, tryCheckBlockCollision, unsetRemoved, updateEventHandler, updateKilledAdvancementCriterion, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSupportingBlockPos, updateSwimming, updateTrackedHeadRotation, updateTrackedPosition, updateVelocity, updateWaterState, wouldPoseNotCollide, writeNbtMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.server.command.CommandOutputcannotBeSilenced
- 
Field Details- 
field_30657private static final double field_30657- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - f- Lbyu;f:D- intermediary - field_30657- Lnet/minecraft/class_1665;field_30657:D- named - field_30657- Lnet/minecraft/entity/projectile/PersistentProjectileEntity;field_30657:D
 
- 
PROJECTILE_FLAGS- Mappings:
- Namespace - Name - Mixin selector - official - g- Lbyu;g:Laby;- intermediary - field_7573- Lnet/minecraft/class_1665;field_7573:Lnet/minecraft/class_2940;- named - PROJECTILE_FLAGS- Lnet/minecraft/entity/projectile/PersistentProjectileEntity;PROJECTILE_FLAGS:Lnet/minecraft/entity/data/TrackedData;
 
- 
PIERCE_LEVEL- Mappings:
- Namespace - Name - Mixin selector - official - h- Lbyu;h:Laby;- intermediary - field_7589- Lnet/minecraft/class_1665;field_7589:Lnet/minecraft/class_2940;- named - PIERCE_LEVEL- Lnet/minecraft/entity/projectile/PersistentProjectileEntity;PIERCE_LEVEL:Lnet/minecraft/entity/data/TrackedData;
 
- 
CRITICAL_FLAGprivate static final int CRITICAL_FLAG- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - i- Lbyu;i:I- intermediary - field_30654- Lnet/minecraft/class_1665;field_30654:I- named - CRITICAL_FLAG- Lnet/minecraft/entity/projectile/PersistentProjectileEntity;CRITICAL_FLAG:I
 
- 
NO_CLIP_FLAGprivate static final int NO_CLIP_FLAG- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - j- Lbyu;j:I- intermediary - field_30655- Lnet/minecraft/class_1665;field_30655:I- named - NO_CLIP_FLAG- Lnet/minecraft/entity/projectile/PersistentProjectileEntity;NO_CLIP_FLAG:I
 
- 
SHOT_FROM_CROSSBOW_FLAGprivate static final int SHOT_FROM_CROSSBOW_FLAG- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - k- Lbyu;k:I- intermediary - field_30656- Lnet/minecraft/class_1665;field_30656:I- named - SHOT_FROM_CROSSBOW_FLAG- Lnet/minecraft/entity/projectile/PersistentProjectileEntity;SHOT_FROM_CROSSBOW_FLAG:I
 
- 
inBlockState- Mappings:
- Namespace - Name - Mixin selector - official - l- Lbyu;l:Ldcb;- intermediary - field_7586- Lnet/minecraft/class_1665;field_7586:Lnet/minecraft/class_2680;- named - inBlockState- Lnet/minecraft/entity/projectile/PersistentProjectileEntity;inBlockState:Lnet/minecraft/block/BlockState;
 
- 
inGroundprotected boolean inGround- Mappings:
- Namespace - Name - Mixin selector - official - b- Lbyu;b:Z- intermediary - field_7588- Lnet/minecraft/class_1665;field_7588:Z- named - inGround- Lnet/minecraft/entity/projectile/PersistentProjectileEntity;inGround:Z
 
- 
inGroundTimeprotected int inGroundTime- Mappings:
- Namespace - Name - Mixin selector - official - c- Lbyu;c:I- intermediary - field_7576- Lnet/minecraft/class_1665;field_7576:I- named - inGroundTime- Lnet/minecraft/entity/projectile/PersistentProjectileEntity;inGroundTime:I
 
- 
pickupType- Mappings:
- Namespace - Name - Mixin selector - official - d- Lbyu;d:Lbyu$a;- intermediary - field_7572- Lnet/minecraft/class_1665;field_7572:Lnet/minecraft/class_1665$class_1666;- named - pickupType- Lnet/minecraft/entity/projectile/PersistentProjectileEntity;pickupType:Lnet/minecraft/entity/projectile/PersistentProjectileEntity$PickupPermission;
 
- 
shakepublic int shake- Mappings:
- Namespace - Name - Mixin selector - official - e- Lbyu;e:I- intermediary - field_7574- Lnet/minecraft/class_1665;field_7574:I- named - shake- Lnet/minecraft/entity/projectile/PersistentProjectileEntity;shake:I
 
- 
lifeprivate int life- Mappings:
- Namespace - Name - Mixin selector - official - m- Lbyu;m:I- intermediary - field_7578- Lnet/minecraft/class_1665;field_7578:I- named - life- Lnet/minecraft/entity/projectile/PersistentProjectileEntity;life:I
 
- 
damageprivate double damage- Mappings:
- Namespace - Name - Mixin selector - official - n- Lbyu;n:D- intermediary - field_7571- Lnet/minecraft/class_1665;field_7571:D- named - damage- Lnet/minecraft/entity/projectile/PersistentProjectileEntity;damage:D
 
- 
punchprivate int punch- Mappings:
- Namespace - Name - Mixin selector - official - o- Lbyu;o:I- intermediary - field_7575- Lnet/minecraft/class_1665;field_7575:I- named - punch- Lnet/minecraft/entity/projectile/PersistentProjectileEntity;punch:I
 
- 
sound- Mappings:
- Namespace - Name - Mixin selector - official - p- Lbyu;p:Lamg;- intermediary - field_7584- Lnet/minecraft/class_1665;field_7584:Lnet/minecraft/class_3414;- named - sound- Lnet/minecraft/entity/projectile/PersistentProjectileEntity;sound:Lnet/minecraft/sound/SoundEvent;
 
- 
piercedEntities- Mappings:
- Namespace - Name - Mixin selector - official - q- Lbyu;q:Lit/unimi/dsi/fastutil/ints/IntOpenHashSet;- intermediary - field_7590- Lnet/minecraft/class_1665;field_7590:Lit/unimi/dsi/fastutil/ints/IntOpenHashSet;- named - piercedEntities- Lnet/minecraft/entity/projectile/PersistentProjectileEntity;piercedEntities:Lit/unimi/dsi/fastutil/ints/IntOpenHashSet;
 
- 
piercingKilledEntities- Mappings:
- Namespace - Name - Mixin selector - official - r- Lbyu;r:Ljava/util/List;- intermediary - field_7579- Lnet/minecraft/class_1665;field_7579:Ljava/util/List;- named - piercingKilledEntities- Lnet/minecraft/entity/projectile/PersistentProjectileEntity;piercingKilledEntities:Ljava/util/List;
 
 
- 
- 
Constructor Details- 
PersistentProjectileEntityprotected PersistentProjectileEntity(EntityType<? extends PersistentProjectileEntity> type, World world) - Mappings:
- Namespace - Name - Mixin selector - official - <init>- Lbfj;<init>(Lbfn;Lcmm;)V- intermediary - <init>- Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)V- named - <init>- Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
 
- 
PersistentProjectileEntityprotected PersistentProjectileEntity(EntityType<? extends PersistentProjectileEntity> type, double x, double y, double z, World world) - Mappings:
- Namespace - Name - Mixin selector - official - <init>- Lbyu;<init>(Lbfn;DDDLcmm;)V- intermediary - <init>- Lnet/minecraft/class_1665;<init>(Lnet/minecraft/class_1299;DDDLnet/minecraft/class_1937;)V- named - <init>- Lnet/minecraft/entity/projectile/PersistentProjectileEntity;<init>(Lnet/minecraft/entity/EntityType;DDDLnet/minecraft/world/World;)V
 
- 
PersistentProjectileEntityprotected PersistentProjectileEntity(EntityType<? extends PersistentProjectileEntity> type, LivingEntity owner, World world) - Mappings:
- Namespace - Name - Mixin selector - official - <init>- Lbyu;<init>(Lbfn;Lbfz;Lcmm;)V- intermediary - <init>- Lnet/minecraft/class_1665;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1309;Lnet/minecraft/class_1937;)V- named - <init>- Lnet/minecraft/entity/projectile/PersistentProjectileEntity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/world/World;)V
 
 
- 
- 
Method Details- 
setSound- Mappings:
- Namespace - Name - Mixin selector - official - b- Lbyu;b(Lamg;)V- intermediary - method_7444- Lnet/minecraft/class_1665;method_7444(Lnet/minecraft/class_3414;)V- named - setSound- Lnet/minecraft/entity/projectile/PersistentProjectileEntity;setSound(Lnet/minecraft/sound/SoundEvent;)V
 
- 
shouldRenderpublic boolean shouldRender(double distance) - Overrides:
- shouldRenderin class- Entity
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbfj;a(D)Z- intermediary - method_5640- Lnet/minecraft/class_1297;method_5640(D)Z- named - shouldRender- Lnet/minecraft/entity/Entity;shouldRender(D)Z
 
- 
initDataTrackerprotected void initDataTracker()Initializes data tracker.- Specified by:
- initDataTrackerin class- Entity
- Mappings:
- Namespace - Name - Mixin selector - official - a_- Lbfj;a_()V- intermediary - method_5693- Lnet/minecraft/class_1297;method_5693()V- named - initDataTracker- Lnet/minecraft/entity/Entity;initDataTracker()V
 
- 
setVelocitypublic void setVelocity(double x, double y, double z, float speed, float divergence) Sets velocity and updates rotation accordingly.The velocity and rotation will be set to the same direction. The direction is calculated as follows: Based on the direction vector (x, y, z), a random vector is added, then multiplied by thespeed.- Overrides:
- setVelocityin class- ProjectileEntity
- Parameters:
- x- the X component of the direction vector
- y- the Y component of the direction vector
- z- the Z component of the direction vector
- speed- the speed
- divergence- the fuzziness added to the direction; player usages have 1.0 and other mobs/tools have higher values; some mobs have difficulty-adjusted values
- Mappings:
- Namespace - Name - Mixin selector - official - c- Lbzg;c(DDDFF)V- intermediary - method_7485- Lnet/minecraft/class_1676;method_7485(DDDFF)V- named - setVelocity- Lnet/minecraft/entity/projectile/ProjectileEntity;setVelocity(DDDFF)V
 
- 
updateTrackedPositionAndAnglespublic void updateTrackedPositionAndAngles(double x, double y, double z, float yaw, float pitch, int interpolationSteps, boolean interpolate) - Overrides:
- updateTrackedPositionAndAnglesin class- Entity
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbfj;a(DDDFFIZ)V- intermediary - method_5759- Lnet/minecraft/class_1297;method_5759(DDDFFIZ)V- named - updateTrackedPositionAndAngles- Lnet/minecraft/entity/Entity;updateTrackedPositionAndAngles(DDDFFIZ)V
 
- 
setVelocityClientpublic void setVelocityClient(double x, double y, double z) - Overrides:
- setVelocityClientin class- ProjectileEntity
- Mappings:
- Namespace - Name - Mixin selector - official - l- Lbfj;l(DDD)V- intermediary - method_5750- Lnet/minecraft/class_1297;method_5750(DDD)V- named - setVelocityClient- Lnet/minecraft/entity/Entity;setVelocityClient(DDD)V
 
- 
tickpublic void tick()Ticks this entity.- Overrides:
- tickin class- ProjectileEntity
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - l- Lbfj;l()V- intermediary - method_5773- Lnet/minecraft/class_1297;method_5773()V- named - tick- Lnet/minecraft/entity/Entity;tick()V
 
- 
shouldFallprivate boolean shouldFall()- Mappings:
- Namespace - Name - Mixin selector - official - z- Lbyu;z()Z- intermediary - method_26351- Lnet/minecraft/class_1665;method_26351()Z- named - shouldFall- Lnet/minecraft/entity/projectile/PersistentProjectileEntity;shouldFall()Z
 
- 
fallprivate void fall()- Mappings:
- Namespace - Name - Mixin selector - official - D- Lbyu;D()V- intermediary - method_26352- Lnet/minecraft/class_1665;method_26352()V- named - fall- Lnet/minecraft/entity/projectile/PersistentProjectileEntity;fall()V
 
- 
move- Overrides:
- movein class- Entity
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbfj;a(Lbgf;Leei;)V- intermediary - method_5784- Lnet/minecraft/class_1297;method_5784(Lnet/minecraft/class_1313;Lnet/minecraft/class_243;)V- named - move- Lnet/minecraft/entity/Entity;move(Lnet/minecraft/entity/MovementType;Lnet/minecraft/util/math/Vec3d;)V
 
- 
ageprotected void age()- Mappings:
- Namespace - Name - Mixin selector - official - j- Lbyu;j()V- intermediary - method_7446- Lnet/minecraft/class_1665;method_7446()V- named - age- Lnet/minecraft/entity/projectile/PersistentProjectileEntity;age()V
 
- 
clearPiercingStatusprivate void clearPiercingStatus()- Mappings:
- Namespace - Name - Mixin selector - official - E- Lbyu;E()V- intermediary - method_7453- Lnet/minecraft/class_1665;method_7453()V- named - clearPiercingStatus- Lnet/minecraft/entity/projectile/PersistentProjectileEntity;clearPiercingStatus()V
 
- 
onEntityHit- Overrides:
- onEntityHitin class- ProjectileEntity
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbzg;a(Leef;)V- intermediary - method_7454- Lnet/minecraft/class_1676;method_7454(Lnet/minecraft/class_3966;)V- named - onEntityHit- Lnet/minecraft/entity/projectile/ProjectileEntity;onEntityHit(Lnet/minecraft/util/hit/EntityHitResult;)V
 
- 
onBlockHit- Overrides:
- onBlockHitin class- ProjectileEntity
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbzg;a(Leee;)V- intermediary - method_24920- Lnet/minecraft/class_1676;method_24920(Lnet/minecraft/class_3965;)V- named - onBlockHit- Lnet/minecraft/entity/projectile/ProjectileEntity;onBlockHit(Lnet/minecraft/util/hit/BlockHitResult;)V
 
- 
getHitSound- Mappings:
- Namespace - Name - Mixin selector - official - k- Lbyu;k()Lamg;- intermediary - method_7440- Lnet/minecraft/class_1665;method_7440()Lnet/minecraft/class_3414;- named - getHitSound- Lnet/minecraft/entity/projectile/PersistentProjectileEntity;getHitSound()Lnet/minecraft/sound/SoundEvent;
 
- 
getSound- Mappings:
- Namespace - Name - Mixin selector - official - o- Lbyu;o()Lamg;- intermediary - method_20011- Lnet/minecraft/class_1665;method_20011()Lnet/minecraft/class_3414;- named - getSound- Lnet/minecraft/entity/projectile/PersistentProjectileEntity;getSound()Lnet/minecraft/sound/SoundEvent;
 
- 
onHit- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbyu;a(Lbfz;)V- intermediary - method_7450- Lnet/minecraft/class_1665;method_7450(Lnet/minecraft/class_1309;)V- named - onHit- Lnet/minecraft/entity/projectile/PersistentProjectileEntity;onHit(Lnet/minecraft/entity/LivingEntity;)V
 
- 
getEntityCollision@Nullable protected @Nullable EntityHitResult getEntityCollision(Vec3d currentPosition, Vec3d nextPosition) - Mappings:
- Namespace - Name - Mixin selector - official - a- Lbyu;a(Leei;Leei;)Leef;- intermediary - method_7434- Lnet/minecraft/class_1665;method_7434(Lnet/minecraft/class_243;Lnet/minecraft/class_243;)Lnet/minecraft/class_3966;- named - getEntityCollision- Lnet/minecraft/entity/projectile/PersistentProjectileEntity;getEntityCollision(Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/util/hit/EntityHitResult;
 
- 
canHit- Overrides:
- canHitin class- ProjectileEntity
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbzg;a(Lbfj;)Z- intermediary - method_26958- Lnet/minecraft/class_1676;method_26958(Lnet/minecraft/class_1297;)Z- named - canHit- Lnet/minecraft/entity/projectile/ProjectileEntity;canHit(Lnet/minecraft/entity/Entity;)Z
 
- 
writeCustomDataToNbtWrites custom data tonbt. Subclasses has to implement this.NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity. - Overrides:
- writeCustomDataToNbtin class- ProjectileEntity
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - b- Lbfj;b(Lqr;)V- intermediary - method_5652- Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V- named - writeCustomDataToNbt- Lnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
 
- 
readCustomDataFromNbtReads custom data fromnbt. Subclasses has to implement this.NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity. nbtmight not have all expected keys, or might have a key whose value does not meet the requirement (such as the type or the range). This method should fall back to a reasonable default value instead of throwing an exception.- Overrides:
- readCustomDataFromNbtin class- ProjectileEntity
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbfj;a(Lqr;)V- intermediary - method_5749- Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V- named - readCustomDataFromNbt- Lnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
 
- 
setOwner- Overrides:
- setOwnerin class- ProjectileEntity
- Mappings:
- Namespace - Name - Mixin selector - official - b- Lbzg;b(Lbfj;)V- intermediary - method_7432- Lnet/minecraft/class_1676;method_7432(Lnet/minecraft/class_1297;)V- named - setOwner- Lnet/minecraft/entity/projectile/ProjectileEntity;setOwner(Lnet/minecraft/entity/Entity;)V
 
- 
onPlayerCollisionCalled when a player collides with the entity. Does nothing by default.This should be overridden if the collision logic is specific to players, such as picking up item entities, experience orbs, or arrows. - Overrides:
- onPlayerCollisionin class- Entity
- Mappings:
- Namespace - Name - Mixin selector - official - b_- Lbfj;b_(Lbyo;)V- intermediary - method_5694- Lnet/minecraft/class_1297;method_5694(Lnet/minecraft/class_1657;)V- named - onPlayerCollision- Lnet/minecraft/entity/Entity;onPlayerCollision(Lnet/minecraft/entity/player/PlayerEntity;)V
 
- 
tryPickup- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbyu;a(Lbyo;)Z- intermediary - method_34713- Lnet/minecraft/class_1665;method_34713(Lnet/minecraft/class_1657;)Z- named - tryPickup- Lnet/minecraft/entity/projectile/PersistentProjectileEntity;tryPickup(Lnet/minecraft/entity/player/PlayerEntity;)Z
 
- 
asItemStack- Mappings:
- Namespace - Name - Mixin selector - official - p- Lbyu;p()Lcfz;- intermediary - method_7445- Lnet/minecraft/class_1665;method_7445()Lnet/minecraft/class_1799;- named - asItemStack- Lnet/minecraft/entity/projectile/PersistentProjectileEntity;asItemStack()Lnet/minecraft/item/ItemStack;
 
- 
getMoveEffectReturns the possible effect(s) of an entity moving.- Overrides:
- getMoveEffectin class- Entity
- Mappings:
- Namespace - Name - Mixin selector - official - aS- Lbfj;aS()Lbfj$b;- intermediary - method_33570- Lnet/minecraft/class_1297;method_33570()Lnet/minecraft/class_1297$class_5799;- named - getMoveEffect- Lnet/minecraft/entity/Entity;getMoveEffect()Lnet/minecraft/entity/Entity$MoveEffect;
 
- 
setDamagepublic void setDamage(double damage) - Mappings:
- Namespace - Name - Mixin selector - official - h- Lbyu;h(D)V- intermediary - method_7438- Lnet/minecraft/class_1665;method_7438(D)V- named - setDamage- Lnet/minecraft/entity/projectile/PersistentProjectileEntity;setDamage(D)V
 
- 
getDamagepublic double getDamage()- Mappings:
- Namespace - Name - Mixin selector - official - q- Lbyu;q()D- intermediary - method_7448- Lnet/minecraft/class_1665;method_7448()D- named - getDamage- Lnet/minecraft/entity/projectile/PersistentProjectileEntity;getDamage()D
 
- 
setPunchpublic void setPunch(int punch) - Mappings:
- Namespace - Name - Mixin selector - official - b- Lbyu;b(I)V- intermediary - method_7449- Lnet/minecraft/class_1665;method_7449(I)V- named - setPunch- Lnet/minecraft/entity/projectile/PersistentProjectileEntity;setPunch(I)V
 
- 
getPunchpublic int getPunch()- Mappings:
- Namespace - Name - Mixin selector - official - r- Lbyu;r()I- intermediary - method_35207- Lnet/minecraft/class_1665;method_35207()I- named - getPunch- Lnet/minecraft/entity/projectile/PersistentProjectileEntity;getPunch()I
 
- 
isAttackablepublic boolean isAttackable()Returns whether the entity can be attacked by players.Note that this is not called for most entities defined in vanilla as unattackable (such as ItemEntityandExperienceOrbEntity) as trying to attack them kicks the player.- Overrides:
- isAttackablein class- Entity
- Returns:
- whether the entity can be attacked by players
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - cn- Lbfj;cn()Z- intermediary - method_5732- Lnet/minecraft/class_1297;method_5732()Z- named - isAttackable- Lnet/minecraft/entity/Entity;isAttackable()Z
 
- 
getEyeHeight- Overrides:
- getEyeHeightin class- Entity
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbfj;a(Lbgl;Lbfk;)F- intermediary - method_18378- Lnet/minecraft/class_1297;method_18378(Lnet/minecraft/class_4050;Lnet/minecraft/class_4048;)F- named - getEyeHeight- Lnet/minecraft/entity/Entity;getEyeHeight(Lnet/minecraft/entity/EntityPose;Lnet/minecraft/entity/EntityDimensions;)F
 
- 
setCriticalpublic void setCritical(boolean critical) - Mappings:
- Namespace - Name - Mixin selector - official - a- Lbyu;a(Z)V- intermediary - method_7439- Lnet/minecraft/class_1665;method_7439(Z)V- named - setCritical- Lnet/minecraft/entity/projectile/PersistentProjectileEntity;setCritical(Z)V
 
- 
setPierceLevelpublic void setPierceLevel(byte level) - Mappings:
- Namespace - Name - Mixin selector - official - a- Lbyu;a(B)V- intermediary - method_7451- Lnet/minecraft/class_1665;method_7451(B)V- named - setPierceLevel- Lnet/minecraft/entity/projectile/PersistentProjectileEntity;setPierceLevel(B)V
 
- 
setProjectileFlagprivate void setProjectileFlag(int index, boolean flag) - Mappings:
- Namespace - Name - Mixin selector - official - a- Lbyu;a(IZ)V- intermediary - method_7455- Lnet/minecraft/class_1665;method_7455(IZ)V- named - setProjectileFlag- Lnet/minecraft/entity/projectile/PersistentProjectileEntity;setProjectileFlag(IZ)V
 
- 
isCriticalpublic boolean isCritical()- Mappings:
- Namespace - Name - Mixin selector - official - s- Lbyu;s()Z- intermediary - method_7443- Lnet/minecraft/class_1665;method_7443()Z- named - isCritical- Lnet/minecraft/entity/projectile/PersistentProjectileEntity;isCritical()Z
 
- 
isShotFromCrossbowpublic boolean isShotFromCrossbow()- Mappings:
- Namespace - Name - Mixin selector - official - t- Lbyu;t()Z- intermediary - method_7456- Lnet/minecraft/class_1665;method_7456()Z- named - isShotFromCrossbow- Lnet/minecraft/entity/projectile/PersistentProjectileEntity;isShotFromCrossbow()Z
 
- 
getPierceLevelpublic byte getPierceLevel()- Mappings:
- Namespace - Name - Mixin selector - official - w- Lbyu;w()B- intermediary - method_7447- Lnet/minecraft/class_1665;method_7447()B- named - getPierceLevel- Lnet/minecraft/entity/projectile/PersistentProjectileEntity;getPierceLevel()B
 
- 
applyEnchantmentEffects- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbyu;a(Lbfz;F)V- intermediary - method_7435- Lnet/minecraft/class_1665;method_7435(Lnet/minecraft/class_1309;F)V- named - applyEnchantmentEffects- Lnet/minecraft/entity/projectile/PersistentProjectileEntity;applyEnchantmentEffects(Lnet/minecraft/entity/LivingEntity;F)V
 
- 
getDragInWaterprotected float getDragInWater()- Mappings:
- Namespace - Name - Mixin selector - official - x- Lbyu;x()F- intermediary - method_7436- Lnet/minecraft/class_1665;method_7436()F- named - getDragInWater- Lnet/minecraft/entity/projectile/PersistentProjectileEntity;getDragInWater()F
 
- 
setNoClippublic void setNoClip(boolean noClip) - Mappings:
- Namespace - Name - Mixin selector - official - p- Lbyu;p(Z)V- intermediary - method_7433- Lnet/minecraft/class_1665;method_7433(Z)V- named - setNoClip- Lnet/minecraft/entity/projectile/PersistentProjectileEntity;setNoClip(Z)V
 
- 
isNoClippublic boolean isNoClip()- Mappings:
- Namespace - Name - Mixin selector - official - y- Lbyu;y()Z- intermediary - method_7441- Lnet/minecraft/class_1665;method_7441()Z- named - isNoClip- Lnet/minecraft/entity/projectile/PersistentProjectileEntity;isNoClip()Z
 
- 
setShotFromCrossbowpublic void setShotFromCrossbow(boolean shotFromCrossbow) - Mappings:
- Namespace - Name - Mixin selector - official - q- Lbyu;q(Z)V- intermediary - method_7442- Lnet/minecraft/class_1665;method_7442(Z)V- named - setShotFromCrossbow- Lnet/minecraft/entity/projectile/PersistentProjectileEntity;setShotFromCrossbow(Z)V
 
 
-