Class PersistentProjectileEntity
- All Implemented Interfaces:
ComponentsAccess,DataTracked,Ownable,ScoreHolder,HeldItemContext,Nameable,DebugTrackable,EntityLike,UniquelyIdentifiable
- Direct Known Subclasses:
ArrowEntity,SpectralArrowEntity,TridentEntity
- Mappings:
Namespace Name named net/minecraft/entity/projectile/PersistentProjectileEntityintermediary net/minecraft/class_1665official czv
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.entity.projectile.ProjectileEntity
ProjectileEntity.ProjectileCreator<T extends ProjectileEntity>Nested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.MoveEffect, Entity.PositionUpdater, Entity.RemovalReasonNested classes/interfaces inherited from interface net.minecraft.world.debug.DebugTrackable
DebugTrackable.DebugDataSupplier<T>, DebugTrackable.TrackerNested classes/interfaces inherited from interface net.minecraft.util.HeldItemContext
HeldItemContext.Offset -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate doubleprivate static final booleanprivate static final floatprivate static final booleanprivate static final shortprivate static final byteprivate static final byteprivate static final doubleprivate static final intprivate static final floatprivate static final TrackedData<Boolean> private @Nullable BlockStateprotected intprivate intprivate static final intprivate static final TrackedData<Byte> private @Nullable IntOpenHashSetprivate static final TrackedData<Byte> intprivate SoundEventprivate ItemStackFields inherited from class net.minecraft.entity.projectile.ProjectileEntity
ownerFields inherited from class net.minecraft.entity.Entity
age, AIR_KEY, collidedSoftly, CUSTOM_DATA_KEY, CUSTOM_NAME_KEY, dataTracker, DEFAULT_FRICTION, DEFAULT_MIN_FREEZE_DAMAGE_TICKS, DEFAULT_PORTAL_COOLDOWN, distanceTraveled, FALL_DISTANCE_KEY, fallDistance, field_44870, field_44871, field_44872, field_49073, field_49791, FIRE_KEY, firstUpdate, FLAGS, fluidHeight, FREEZING_DAMAGE_INTERVAL, GLIDING_FLAG_INDEX, GLOWING_FLAG_INDEX, GLOWING_KEY, groundCollision, horizontalCollision, ID_KEY, inPowderSnow, intersectionChecked, INVULNERABLE_KEY, lastPitch, lastRenderX, lastRenderY, lastRenderZ, lastX, lastY, lastYaw, lastZ, MAX_COMMAND_TAGS, MAX_QUEUED_COLLISION_CHECKS, MAX_RIDING_COOLDOWN, MIN_RISING_BUBBLE_COLUMN_SPEED, MOTION_KEY, movementMultiplier, NO_GRAVITY_KEY, noClip, ON_FIRE_FLAG_INDEX, ON_GROUND_KEY, PASSENGERS_KEY, PORTAL_COOLDOWN_KEY, portalManager, POS_KEY, POSE, random, ridingCooldown, ROTATION_KEY, SILENT_KEY, speed, submergedInWater, supportingBlockPos, timeUntilRegen, touchingWater, uuid, UUID_KEY, uuidString, velocityDirty, velocityModified, verticalCollision, wasInPowderSnowFields inherited from interface net.minecraft.scoreboard.ScoreHolder
WILDCARD, WILDCARD_NAME -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPersistentProjectileEntity(EntityType<? extends PersistentProjectileEntity> type, double x, double y, double z, World world, ItemStack stack, @Nullable ItemStack weapon) protectedPersistentProjectileEntity(EntityType<? extends PersistentProjectileEntity> type, LivingEntity owner, World world, ItemStack stack, @Nullable ItemStack shotFrom) protectedPersistentProjectileEntity(EntityType<? extends PersistentProjectileEntity> type, World world) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddVelocity(double deltaX, double deltaY, double deltaZ) protected voidage()private voidapplyCollision(BlockHitResult blockHitResult) voidapplyDamageModifier(float damageModifier) private voidapplyDrag(float drag) protected ItemStackbooleancanHit()Returns whether the entity can be hit with a projectile or be targeted by the player crosshair.protected booleanprivate voidprotected booleanprivate voidfall()protected abstract ItemStackprotected floatprotected @Nullable EntityHitResultgetEntityCollision(Vec3d currentPosition, Vec3d nextPosition) protected doubleprotected SoundEventReturns the read-only item stack representing the projectile.protected Entity.MoveEffectReturns the possible effect(s) of an entity moving.byteprotected final SoundEventgetSound()getStackReference(int mappedIndex) Obtains a stack reference to be modified.protected voidinitDataTracker(DataTracker.Builder builder) Initializes data tracker.booleanReturns whether the entity can be attacked by players.booleanprotected booleanbooleanisNoClip()booleanReturns whether the entity is pushed by fluids.protected voidknockback(LivingEntity target, DamageSource source) voidmove(MovementType type, Vec3d movement) protected voidonBlockHit(BlockHitResult blockHitResult) protected voidonBlockHitEnchantmentEffects(ServerWorld world, BlockHitResult blockHitResult, ItemStack weaponStack) protected voidvoidonBubbleColumnCollision(boolean drag) Called when the entity collides with a bubble column without an air above.voidonBubbleColumnSurfaceCollision(boolean drag, BlockPos pos) Called when the entity collides with a bubble column with an air above.protected voidonEntityHit(EntityHitResult entityHitResult) protected voidonHit(LivingEntity target) voidonPlayerCollision(PlayerEntity player) Called when a player collides with the entity.voidonTrackedDataSet(TrackedData<?> data) Called on the client when the tracked data is set.protected voidreadCustomData(ReadView view) voidsetCritical(boolean critical) voidsetDamage(double damage) protected voidsetInGround(boolean inGround) voidsetNoClip(boolean noClip) voidprivate voidsetPierceLevel(byte level) private voidsetProjectileFlag(int index, boolean flag) voidsetSound(SoundEvent sound) protected voidvoidsetVelocity(double x, double y, double z, float power, float uncertainty) Sets velocity and updates rotation accordingly.voidsetVelocityClient(Vec3d clientVelocity) private booleanbooleanshouldRender(double distance) private voidvoidtick()Ticks this entity.protected booleantryPickup(PlayerEntity player) protected voidwriteCustomData(WriteView view) Methods inherited from class net.minecraft.entity.projectile.ProjectileEntity
calculateVelocity, canBreakBlocks, canModifyAt, copyFrom, createSpawnPacket, damage, deflect, getDefaultPortalCooldown, getEffectCause, getKnockback, getOwner, getTargetingMargin, hitOrDeflect, isOwner, onCollision, onDeflected, onSpawnPacket, setOwner, setVelocity, spawn, spawn, spawnWithVelocity, spawnWithVelocity, spawnWithVelocity, tickLeftOwner, triggerProjectileSpawned, updateRotation, updateRotationMethods inherited from class net.minecraft.entity.Entity
addAirTravelEffects, addCommandTag, addFlapEffects, addPassenger, addPortalChunkTicketAt, addVelocity, addVelocityInternal, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, animateDamage, applyBubbleColumnEffects, applyBubbleColumnSurfaceEffects, applyGravity, applyMirror, applyRotation, attemptTickInVoid, baseTick, bypassesLandingEffects, bypassesSteppingEffects, calcDistanceFromBottomCollision, calculateBoundingBox, calculateDefaultBoundingBox, calculateDimensions, calculateNextStepSoundDistance, canActVoluntarily, canAddPassenger, canAvoidTraps, canBeHitByProjectile, canBeSpectated, canExplosionDestroyBlock, canFreeze, canMoveVoluntarily, canSprintAsVehicle, canStartRiding, canTeleportBetween, canUsePortals, castComponentValue, changeLookDirection, checkDespawn, clearQueuedCollisionChecks, clientDamage, collides, collidesWith, collidesWithFluid, collidesWithStateAtPos, copyComponentFrom, copyComponentsFrom, copyComponentsFrom, copyPositionAndRotation, couldAcceptPassenger, defrost, detach, detachAllHeldLeashes, discard, dismountVehicle, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropStack, dropStack, dropStack, emitGameEvent, emitGameEvent, equals, extinguish, extinguishWithSound, fall, findCollisions, get, getAir, getAttachments, getBlockPos, getBlockStateAtPos, getBlockX, getBlockY, getBlockZ, getBodyX, getBodyY, getBodyYaw, getBodyZ, getBoundingBox, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getChunkPos, getClientCameraPosVec, getCommandSource, getCommandTags, getControllingPassenger, getControllingVehicle, getCustomName, getDamageSources, getDataTracker, getDefaultName, getDimensions, getDisplayName, getEffectiveExplosionResistance, getEntityPos, getEntityWorld, getErrorReporterContext, getEyeHeight, getEyePos, getEyeY, getFacing, getFinalGravity, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getHandPosOffset, getHeadYaw, getHeight, getHeldQuadLeashOffsets, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getInterpolator, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLastRenderPos, getLeashPos, getLerpedPitch, getLerpedPos, getLerpedYaw, getLootTableKey, getMaxAir, getMinFreezeDamageTicks, getMovement, getMovementDirection, getName, getNameForScoreboard, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerAttachmentPos, getPassengerAttachmentPos, getPassengerDismountOffset, getPassengerList, getPassengerRidingPos, getPassengersDeep, getPickBlockStack, getPistonBehavior, getPitch, getPitch, getPlayerPassengers, getPortalCooldown, getPose, getPosWithYOffset, getProjectileDeflection, getRandom, getRandomBodyY, getRegistryManager, getRemovalReason, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSafeFallDistance, getSavedEntityId, getScoreboardTeam, getSoundCategory, getSplashSound, getStandingEyeHeight, getStepHeight, getSteppingBlockState, getSteppingPos, getStepSoundPos, getSwimHeight, getSwimSound, getSyncedPos, getTeamColorValue, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVehicleAttachmentPos, getVelocity, getVelocityAffectingPos, getVelocityMultiplier, getWidth, getWorldSpawnPos, getX, getY, getYaw, getYaw, getZ, handleAttack, handleFall, handleFallDamage, handleFallDamageForPassengers, handleStatus, hasCollidedSoftly, hasControllingPassenger, hasCustomName, hashCode, hasNoGravity, hasPassenger, hasPassenger, hasPassengerDeep, hasPassengers, hasPlayerRider, hasPortalCooldown, hasQuadLeashAttachmentPoints, hasVehicle, igniteByLava, interact, interactAt, isAlive, isAlwaysInvulnerableTo, isAtCloudHeight, isCollidable, isConnectedThroughVehicle, isControlledByMainPlayer, isControlledByPlayer, isCrawling, isCustomNameVisible, isDescending, isFireImmune, isFlappingWings, isFlyingVehicle, isFrozen, isGlowing, isGlowingLocal, isImmuneToExplosion, isInFluid, isInLava, isInPose, isInRange, isInRange, isInSameTeam, isInsideWall, isInSneakingPose, isInSwimmingPose, isInteractable, isInterpolating, isInvisible, isInvisibleTo, isInvulnerable, isLiving, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isOnRail, isPartlyTouchingWater, isPartOf, isPlayer, isPushable, isRegionUnloaded, isRemoved, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSubmergedInWater, isSupportedBy, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, kill, lerpPosAndRotation, lerpYaw, limitFallDistance, lookAt, movementInputToVelocity, occludeVibrationSignals, onBlockCollision, onDamaged, onDataTrackerUpdate, onExplodedBy, onHeldLeashUpdate, onKilledOther, onLanding, onPassengerLookAround, onRemove, onRemoved, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, playCombinationStepSounds, playExtinguishSound, playSecondaryStepSound, playSound, playSoundIfNotSilent, playStepSound, playSwimSound, playSwimSound, popQueuedCollisionCheck, populateCrashReport, positionInPortal, pushAwayFrom, pushOutOfBlocks, raycast, readData, recalculateDimensions, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, refreshPositionAndAngles, registerTracking, reinitDimensions, remove, removeAllPassengers, removeCommandTag, removeFromDimension, removePassenger, requestTeleport, requestTeleportAndDismount, requestTeleportOffset, resetPortalCooldown, resetPosition, rotate, saveData, saveSelfData, scheduleVelocityUpdate, serverDamage, setAir, setAlwaysSyncAbsolute, setAngles, setApplicableComponent, setBodyYaw, setBoundingBox, setChangeListener, setComponent, setCustomName, setCustomNameVisible, setFireTicks, setFlag, setFrozenTicks, setGlowing, setHeadYaw, setId, setInPowderSnow, setInvisible, setInvulnerable, setLastPositionAndAngles, setMovement, setMovement, setNoGravity, setOnFire, setOnFireFor, setOnFireForTicks, setOnFireFromLava, setOnGround, setPitch, setPortalCooldown, setPos, setPose, setPosition, setPosition, setPosition, setPosition, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSprinting, setSwimming, setUuid, setVelocity, setVelocity, setWorld, setYaw, shouldAlwaysSyncAbsolute, shouldControlVehicles, shouldDismountUnderwater, shouldEscapePowderSnow, shouldPlayBurnSoundInLava, shouldRender, shouldRenderName, shouldSave, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTickBlockCollision, sidedDamage, slowMovement, snipAllHeldLeashes, spawnBubbleColumnParticles, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, startRiding, startRiding, stopRiding, streamPassengersAndSelf, streamSelfAndPassengers, teleport, teleportSpectatingPlayers, teleportTo, tickBlockCollision, tickBlockCollision, tickHeldLeash, tickInVoid, tickPortalCooldown, tickPortalTeleportation, tickRiding, toString, tryUsePortal, unsetRemoved, updateEventHandler, updateKilledAdvancementCriterion, updateLastAngles, updateLastPosition, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSupportingBlockPos, updateSwimming, updateTrackedAngles, updateTrackedHeadRotation, updateTrackedPosition, updateTrackedPosition, updateTrackedPositionAndAngles, updateTrackedPositionAndAngles, updateVelocity, updateWaterState, writeDataMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.component.ComponentsAccess
getOrDefault, getTypedMethods inherited from interface net.minecraft.util.HeldItemContext
getEntityMethods inherited from interface net.minecraft.util.Nameable
getStringifiedNameMethods inherited from interface net.minecraft.scoreboard.ScoreHolder
getStyledDisplayName
-
Field Details
-
field_30657
private static final double field_30657- See Also:
- Mappings:
Namespace Name Mixin selector named field_30657Lnet/minecraft/entity/projectile/PersistentProjectileEntity;field_30657:Dintermediary field_30657Lnet/minecraft/class_1665;field_30657:Dofficial dLczv;d:D
-
field_54968
private static final int field_54968- See Also:
- Mappings:
Namespace Name Mixin selector named field_54968Lnet/minecraft/entity/projectile/PersistentProjectileEntity;field_54968:Iintermediary field_54968Lnet/minecraft/class_1665;field_54968:Iofficial fLczv;f:I
-
field_55017
private static final float field_55017- See Also:
- Mappings:
Namespace Name Mixin selector named field_55017Lnet/minecraft/entity/projectile/PersistentProjectileEntity;field_55017:Fintermediary field_55017Lnet/minecraft/class_1665;field_55017:Fofficial gLczv;g:F
-
DEFAULT_DRAG
private static final float DEFAULT_DRAG- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_DRAGLnet/minecraft/entity/projectile/PersistentProjectileEntity;DEFAULT_DRAG:Fintermediary field_55018Lnet/minecraft/class_1665;field_55018:Fofficial hLczv;h:F
-
DEFAULT_LIFE
private static final short DEFAULT_LIFE- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_LIFELnet/minecraft/entity/projectile/PersistentProjectileEntity;DEFAULT_LIFE:Sintermediary field_57732Lnet/minecraft/class_1665;field_57732:Sofficial iLczv;i:S
-
DEFAULT_SHAKE
private static final byte DEFAULT_SHAKE- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_SHAKELnet/minecraft/entity/projectile/PersistentProjectileEntity;DEFAULT_SHAKE:Bintermediary field_57733Lnet/minecraft/class_1665;field_57733:Bofficial jLczv;j:B
-
DEFAULT_IN_GROUND
private static final boolean DEFAULT_IN_GROUND- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_IN_GROUNDLnet/minecraft/entity/projectile/PersistentProjectileEntity;DEFAULT_IN_GROUND:Zintermediary field_57734Lnet/minecraft/class_1665;field_57734:Zofficial kLczv;k:Z
-
DEFAULT_CRITICAL
private static final boolean DEFAULT_CRITICAL- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_CRITICALLnet/minecraft/entity/projectile/PersistentProjectileEntity;DEFAULT_CRITICAL:Zintermediary field_57735Lnet/minecraft/class_1665;field_57735:Zofficial lLczv;l:Z
-
DEFAULT_PIERCE_LEVEL
private static final byte DEFAULT_PIERCE_LEVEL- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_PIERCE_LEVELLnet/minecraft/entity/projectile/PersistentProjectileEntity;DEFAULT_PIERCE_LEVEL:Bintermediary field_57736Lnet/minecraft/class_1665;field_57736:Bofficial mLczv;m:B
-
PROJECTILE_FLAGS
- Mappings:
Namespace Name Mixin selector named PROJECTILE_FLAGSLnet/minecraft/entity/projectile/PersistentProjectileEntity;PROJECTILE_FLAGS:Lnet/minecraft/entity/data/TrackedData;intermediary field_7573Lnet/minecraft/class_1665;field_7573:Lnet/minecraft/class_2940;official nLczv;n:Lalm;
-
PIERCE_LEVEL
- Mappings:
Namespace Name Mixin selector named PIERCE_LEVELLnet/minecraft/entity/projectile/PersistentProjectileEntity;PIERCE_LEVEL:Lnet/minecraft/entity/data/TrackedData;intermediary field_7589Lnet/minecraft/class_1665;field_7589:Lnet/minecraft/class_2940;official oLczv;o:Lalm;
-
IN_GROUND
- Mappings:
Namespace Name Mixin selector named IN_GROUNDLnet/minecraft/entity/projectile/PersistentProjectileEntity;IN_GROUND:Lnet/minecraft/entity/data/TrackedData;intermediary field_54969Lnet/minecraft/class_1665;field_54969:Lnet/minecraft/class_2940;official pLczv;p:Lalm;
-
CRITICAL_FLAG
private static final int CRITICAL_FLAG- See Also:
- Mappings:
Namespace Name Mixin selector named CRITICAL_FLAGLnet/minecraft/entity/projectile/PersistentProjectileEntity;CRITICAL_FLAG:Iintermediary field_30654Lnet/minecraft/class_1665;field_30654:Iofficial qLczv;q:I
-
NO_CLIP_FLAG
private static final int NO_CLIP_FLAG- See Also:
- Mappings:
Namespace Name Mixin selector named NO_CLIP_FLAGLnet/minecraft/entity/projectile/PersistentProjectileEntity;NO_CLIP_FLAG:Iintermediary field_30655Lnet/minecraft/class_1665;field_30655:Iofficial rLczv;r:I
-
inBlockState
- Mappings:
Namespace Name Mixin selector named inBlockStateLnet/minecraft/entity/projectile/PersistentProjectileEntity;inBlockState:Lnet/minecraft/block/BlockState;intermediary field_7586Lnet/minecraft/class_1665;field_7586:Lnet/minecraft/class_2680;official sLczv;s:Lejm;
-
inGroundTime
protected int inGroundTime- Mappings:
Namespace Name Mixin selector named inGroundTimeLnet/minecraft/entity/projectile/PersistentProjectileEntity;inGroundTime:Iintermediary field_7576Lnet/minecraft/class_1665;field_7576:Iofficial aLczv;a:I
-
pickupType
- Mappings:
Namespace Name Mixin selector named pickupTypeLnet/minecraft/entity/projectile/PersistentProjectileEntity;pickupType:Lnet/minecraft/entity/projectile/PersistentProjectileEntity$PickupPermission;intermediary field_7572Lnet/minecraft/class_1665;field_7572:Lnet/minecraft/class_1665$class_1666;official bLczv;b:Lczv$a;
-
shake
public int shake- Mappings:
Namespace Name Mixin selector named shakeLnet/minecraft/entity/projectile/PersistentProjectileEntity;shake:Iintermediary field_7574Lnet/minecraft/class_1665;field_7574:Iofficial cLczv;c:I
-
life
private int life- Mappings:
Namespace Name Mixin selector named lifeLnet/minecraft/entity/projectile/PersistentProjectileEntity;life:Iintermediary field_7578Lnet/minecraft/class_1665;field_7578:Iofficial tLczv;t:I
-
damage
private double damage- Mappings:
Namespace Name Mixin selector named damageLnet/minecraft/entity/projectile/PersistentProjectileEntity;damage:Dintermediary field_7571Lnet/minecraft/class_1665;field_7571:Dofficial uLczv;u:D
-
sound
- Mappings:
Namespace Name Mixin selector named soundLnet/minecraft/entity/projectile/PersistentProjectileEntity;sound:Lnet/minecraft/sound/SoundEvent;intermediary field_7584Lnet/minecraft/class_1665;field_7584:Lnet/minecraft/class_3414;official aNLczv;aN:Lbcd;
-
piercedEntities
- Mappings:
Namespace Name Mixin selector named piercedEntitiesLnet/minecraft/entity/projectile/PersistentProjectileEntity;piercedEntities:Lit/unimi/dsi/fastutil/ints/IntOpenHashSet;intermediary field_7590Lnet/minecraft/class_1665;field_7590:Lit/unimi/dsi/fastutil/ints/IntOpenHashSet;official aOLczv;aO:Lit/unimi/dsi/fastutil/ints/IntOpenHashSet;
-
piercingKilledEntities
- Mappings:
Namespace Name Mixin selector named piercingKilledEntitiesLnet/minecraft/entity/projectile/PersistentProjectileEntity;piercingKilledEntities:Ljava/util/List;intermediary field_7579Lnet/minecraft/class_1665;field_7579:Ljava/util/List;official aPLczv;aP:Ljava/util/List;
-
stack
- Mappings:
Namespace Name Mixin selector named stackLnet/minecraft/entity/projectile/PersistentProjectileEntity;stack:Lnet/minecraft/item/ItemStack;intermediary field_46970Lnet/minecraft/class_1665;field_46970:Lnet/minecraft/class_1799;official aQLczv;aQ:Ldhp;
-
weapon
- Mappings:
Namespace Name Mixin selector named weaponLnet/minecraft/entity/projectile/PersistentProjectileEntity;weapon:Lnet/minecraft/item/ItemStack;intermediary field_51620Lnet/minecraft/class_1665;field_51620:Lnet/minecraft/class_1799;official aRLczv;aR:Ldhp;
-
-
Constructor Details
-
PersistentProjectileEntity
protected PersistentProjectileEntity(EntityType<? extends PersistentProjectileEntity> type, World world) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)Vintermediary <init>Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)Vofficial <init>Lcdv;<init>(Lcee;Ldrq;)V
-
PersistentProjectileEntity
protected PersistentProjectileEntity(EntityType<? extends PersistentProjectileEntity> type, double x, double y, double z, World world, ItemStack stack, @Nullable @Nullable ItemStack weapon) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/entity/projectile/PersistentProjectileEntity;<init>(Lnet/minecraft/entity/EntityType;DDDLnet/minecraft/world/World;Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)Vintermediary <init>Lnet/minecraft/class_1665;<init>(Lnet/minecraft/class_1299;DDDLnet/minecraft/class_1937;Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;)Vofficial <init>Lczv;<init>(Lcee;DDDLdrq;Ldhp;Ldhp;)V
-
PersistentProjectileEntity
protected PersistentProjectileEntity(EntityType<? extends PersistentProjectileEntity> type, LivingEntity owner, World world, ItemStack stack, @Nullable @Nullable ItemStack shotFrom) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/entity/projectile/PersistentProjectileEntity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/world/World;Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)Vintermediary <init>Lnet/minecraft/class_1665;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1309;Lnet/minecraft/class_1937;Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;)Vofficial <init>Lczv;<init>(Lcee;Lcew;Ldrq;Ldhp;Ldhp;)V
-
-
Method Details
-
setSound
- Mappings:
Namespace Name Mixin selector named setSoundLnet/minecraft/entity/projectile/PersistentProjectileEntity;setSound(Lnet/minecraft/sound/SoundEvent;)Vintermediary method_7444Lnet/minecraft/class_1665;method_7444(Lnet/minecraft/class_3414;)Vofficial bLczv;b(Lbcd;)V
-
shouldRender
public boolean shouldRender(double distance) - Overrides:
shouldRenderin classEntity- Mappings:
Namespace Name Mixin selector named shouldRenderLnet/minecraft/entity/Entity;shouldRender(D)Zintermediary method_5640Lnet/minecraft/class_1297;method_5640(D)Zofficial aLcdv;a(D)Z
-
initDataTracker
Initializes data tracker.- Specified by:
initDataTrackerin classEntity- API Note:
- Subclasses should override this and add to the builder any data that needs to be tracked.
- Mappings:
Namespace Name Mixin selector named initDataTrackerLnet/minecraft/entity/Entity;initDataTracker(Lnet/minecraft/entity/data/DataTracker$Builder;)Vintermediary method_5693Lnet/minecraft/class_1297;method_5693(Lnet/minecraft/class_2945$class_9222;)Vofficial aLcdv;a(Lalq$a;)V
-
setVelocity
public void setVelocity(double x, double y, double z, float power, float uncertainty) 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 classProjectileEntity- Parameters:
x- the X component of the direction vectory- the Y component of the direction vectorz- the Z component of the direction vectorpower- the speeduncertainty- 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 named setVelocityLnet/minecraft/entity/projectile/ProjectileEntity;setVelocity(DDDFF)Vintermediary method_7485Lnet/minecraft/class_1676;method_7485(DDDFF)Vofficial cLdai;c(DDDFF)V
-
setVelocityClient
- Overrides:
setVelocityClientin classEntity- Mappings:
Namespace Name Mixin selector named setVelocityClientLnet/minecraft/entity/Entity;setVelocityClient(Lnet/minecraft/util/math/Vec3d;)Vintermediary method_5750Lnet/minecraft/class_1297;method_5750(Lnet/minecraft/class_243;)Vofficial jLcdv;j(Lfoh;)V
-
onTrackedDataSet
Called on the client when the tracked data is set.This can be overridden to refresh other fields when the tracked data is set or changed.
- Specified by:
onTrackedDataSetin interfaceDataTracked- Overrides:
onTrackedDataSetin classEntity- Mappings:
Namespace Name Mixin selector named onTrackedDataSetLnet/minecraft/entity/data/DataTracked;onTrackedDataSet(Lnet/minecraft/entity/data/TrackedData;)Vintermediary method_5674Lnet/minecraft/class_9221;method_5674(Lnet/minecraft/class_2940;)Vofficial aLalp;a(Lalm;)V
-
tick
public void tick()Ticks this entity.- Overrides:
tickin classProjectileEntity- See Also:
- API Note:
- This can be overridden to add additional logics.
super.tick();should be called in those cases. - Implementation Note:
- By default, this delegates all logics to
Entity.baseTick(). - Mappings:
Namespace Name Mixin selector named tickLnet/minecraft/entity/Entity;tick()Vintermediary method_5773Lnet/minecraft/class_1297;method_5773()Vofficial gLcdv;g()V
-
applyCollision
- Mappings:
Namespace Name Mixin selector named applyCollisionLnet/minecraft/entity/projectile/PersistentProjectileEntity;applyCollision(Lnet/minecraft/util/hit/BlockHitResult;)Vintermediary method_63670Lnet/minecraft/class_1665;method_63670(Lnet/minecraft/class_3965;)Vofficial bLczv;b(Lfod;)V
-
applyDrag
private void applyDrag(float drag) - Mappings:
Namespace Name Mixin selector named applyDragLnet/minecraft/entity/projectile/PersistentProjectileEntity;applyDrag(F)Vintermediary method_63669Lnet/minecraft/class_1665;method_63669(F)Vofficial bLczv;b(F)V
-
spawnBubbleParticles
- Mappings:
Namespace Name Mixin selector named spawnBubbleParticlesLnet/minecraft/entity/projectile/PersistentProjectileEntity;spawnBubbleParticles(Lnet/minecraft/util/math/Vec3d;)Vintermediary method_64646Lnet/minecraft/class_1665;method_64646(Lnet/minecraft/class_243;)Vofficial aLczv;a(Lfoh;)V
-
getGravity
protected double getGravity()- Overrides:
getGravityin classEntity- Mappings:
Namespace Name Mixin selector named getGravityLnet/minecraft/entity/Entity;getGravity()Dintermediary method_7490Lnet/minecraft/class_1297;method_7490()Dofficial boLcdv;bo()D
-
shouldFall
private boolean shouldFall()- Mappings:
Namespace Name Mixin selector named shouldFallLnet/minecraft/entity/projectile/PersistentProjectileEntity;shouldFall()Zintermediary method_26351Lnet/minecraft/class_1665;method_26351()Zofficial xLczv;x()Z
-
fall
private void fall()- Mappings:
Namespace Name Mixin selector named fallLnet/minecraft/entity/projectile/PersistentProjectileEntity;fall()Vintermediary method_26352Lnet/minecraft/class_1665;method_26352()Vofficial BLczv;B()V
-
isInGround
protected boolean isInGround()- Mappings:
Namespace Name Mixin selector named isInGroundLnet/minecraft/entity/projectile/PersistentProjectileEntity;isInGround()Zintermediary method_65059Lnet/minecraft/class_1665;method_65059()Zofficial eLczv;e()Z
-
setInGround
protected void setInGround(boolean inGround) - Mappings:
Namespace Name Mixin selector named setInGroundLnet/minecraft/entity/projectile/PersistentProjectileEntity;setInGround(Z)Vintermediary method_65058Lnet/minecraft/class_1665;method_65058(Z)Vofficial aLczv;a(Z)V
-
isPushedByFluids
public boolean isPushedByFluids()Returns whether the entity is pushed by fluids.- Overrides:
isPushedByFluidsin classEntity- Returns:
- whether the entity is pushed by fluids
- API Note:
- Aquatic mobs should override this to return
false. Players are not pushed by fluids if they can fly (e.g. because of game mode). - Mappings:
Namespace Name Mixin selector named isPushedByFluidsLnet/minecraft/entity/Entity;isPushedByFluids()Zintermediary method_5675Lnet/minecraft/class_1297;method_5675()Zofficial cWLcdv;cW()Z
-
move
- Overrides:
movein classEntity- Mappings:
Namespace Name Mixin selector named moveLnet/minecraft/entity/Entity;move(Lnet/minecraft/entity/MovementType;Lnet/minecraft/util/math/Vec3d;)Vintermediary method_5784Lnet/minecraft/class_1297;method_5784(Lnet/minecraft/class_1313;Lnet/minecraft/class_243;)Vofficial aLcdv;a(Lcfa;Lfoh;)V
-
age
protected void age()- Mappings:
Namespace Name Mixin selector named ageLnet/minecraft/entity/projectile/PersistentProjectileEntity;age()Vintermediary method_7446Lnet/minecraft/class_1665;method_7446()Vofficial fLczv;f()V
-
clearPiercingStatus
private void clearPiercingStatus()- Mappings:
Namespace Name Mixin selector named clearPiercingStatusLnet/minecraft/entity/projectile/PersistentProjectileEntity;clearPiercingStatus()Vintermediary method_7453Lnet/minecraft/class_1665;method_7453()Vofficial CLczv;C()V
-
onBroken
- Overrides:
onBrokenin classProjectileEntity- Mappings:
Namespace Name Mixin selector named onBrokenLnet/minecraft/entity/projectile/ProjectileEntity;onBroken(Lnet/minecraft/item/Item;)Vintermediary method_61544Lnet/minecraft/class_1676;method_61544(Lnet/minecraft/class_1792;)Vofficial bLdai;b(Ldhl;)V
-
onBubbleColumnSurfaceCollision
Called when the entity collides with a bubble column with an air above.This applies the bubble column velocity by default.
BoatEntityuses this to spawn splash particles.- Overrides:
onBubbleColumnSurfaceCollisionin classProjectileEntity- Parameters:
drag- whether the entity should be dragged downwards- Mappings:
Namespace Name Mixin selector named onBubbleColumnSurfaceCollisionLnet/minecraft/entity/Entity;onBubbleColumnSurfaceCollision(ZLnet/minecraft/util/math/BlockPos;)Vintermediary method_5700Lnet/minecraft/class_1297;method_5700(ZLnet/minecraft/class_2338;)Vofficial aLcdv;a(ZLja;)V
-
onBubbleColumnCollision
public void onBubbleColumnCollision(boolean drag) Called when the entity collides with a bubble column without an air above.This applies the bubble column velocity by default.
- Overrides:
onBubbleColumnCollisionin classProjectileEntity- Parameters:
drag- whether the entity should be dragged downwards- Mappings:
Namespace Name Mixin selector named onBubbleColumnCollisionLnet/minecraft/entity/Entity;onBubbleColumnCollision(Z)Vintermediary method_5764Lnet/minecraft/class_1297;method_5764(Z)Vofficial mLcdv;m(Z)V
-
addVelocity
public void addVelocity(double deltaX, double deltaY, double deltaZ) - Overrides:
addVelocityin classEntity- Mappings:
Namespace Name Mixin selector named addVelocityLnet/minecraft/entity/Entity;addVelocity(DDD)Vintermediary method_5762Lnet/minecraft/class_1297;method_5762(DDD)Vofficial iLcdv;i(DDD)V
-
onEntityHit
- Overrides:
onEntityHitin classProjectileEntity- Mappings:
Namespace Name Mixin selector named onEntityHitLnet/minecraft/entity/projectile/ProjectileEntity;onEntityHit(Lnet/minecraft/util/hit/EntityHitResult;)Vintermediary method_7454Lnet/minecraft/class_1676;method_7454(Lnet/minecraft/class_3966;)Vofficial aLdai;a(Lfoe;)V
-
knockback
- Mappings:
Namespace Name Mixin selector named knockbackLnet/minecraft/entity/projectile/PersistentProjectileEntity;knockback(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/damage/DamageSource;)Vintermediary method_59957Lnet/minecraft/class_1665;method_59957(Lnet/minecraft/class_1309;Lnet/minecraft/class_1282;)Vofficial aLczv;a(Lcew;Lcci;)V
-
onBlockHit
- Overrides:
onBlockHitin classProjectileEntity- Mappings:
Namespace Name Mixin selector named onBlockHitLnet/minecraft/entity/projectile/ProjectileEntity;onBlockHit(Lnet/minecraft/util/hit/BlockHitResult;)Vintermediary method_24920Lnet/minecraft/class_1676;method_24920(Lnet/minecraft/class_3965;)Vofficial aLdai;a(Lfod;)V
-
onBlockHitEnchantmentEffects
protected void onBlockHitEnchantmentEffects(ServerWorld world, BlockHitResult blockHitResult, ItemStack weaponStack) - Mappings:
Namespace Name Mixin selector named onBlockHitEnchantmentEffectsLnet/minecraft/entity/projectile/PersistentProjectileEntity;onBlockHitEnchantmentEffects(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/hit/BlockHitResult;Lnet/minecraft/item/ItemStack;)Vintermediary method_59956Lnet/minecraft/class_1665;method_59956(Lnet/minecraft/class_3218;Lnet/minecraft/class_3965;Lnet/minecraft/class_1799;)Vofficial aLczv;a(Lawx;Lfod;Ldhp;)V
-
getWeaponStack
- Overrides:
getWeaponStackin classEntity- Mappings:
Namespace Name Mixin selector named getWeaponStackLnet/minecraft/entity/Entity;getWeaponStack()Lnet/minecraft/item/ItemStack;intermediary method_59958Lnet/minecraft/class_1297;method_59958()Lnet/minecraft/class_1799;official elLcdv;el()Ldhp;
-
getHitSound
- Mappings:
Namespace Name Mixin selector named getHitSoundLnet/minecraft/entity/projectile/PersistentProjectileEntity;getHitSound()Lnet/minecraft/sound/SoundEvent;intermediary method_7440Lnet/minecraft/class_1665;method_7440()Lnet/minecraft/class_3414;official iLczv;i()Lbcd;
-
getSound
- Mappings:
Namespace Name Mixin selector named getSoundLnet/minecraft/entity/projectile/PersistentProjectileEntity;getSound()Lnet/minecraft/sound/SoundEvent;intermediary method_20011Lnet/minecraft/class_1665;method_20011()Lnet/minecraft/class_3414;official kLczv;k()Lbcd;
-
onHit
- Mappings:
Namespace Name Mixin selector named onHitLnet/minecraft/entity/projectile/PersistentProjectileEntity;onHit(Lnet/minecraft/entity/LivingEntity;)Vintermediary method_7450Lnet/minecraft/class_1665;method_7450(Lnet/minecraft/class_1309;)Vofficial aLczv;a(Lcew;)V
-
getEntityCollision
@Nullable protected @Nullable EntityHitResult getEntityCollision(Vec3d currentPosition, Vec3d nextPosition) - Mappings:
Namespace Name Mixin selector named getEntityCollisionLnet/minecraft/entity/projectile/PersistentProjectileEntity;getEntityCollision(Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/util/hit/EntityHitResult;intermediary method_7434Lnet/minecraft/class_1665;method_7434(Lnet/minecraft/class_243;Lnet/minecraft/class_243;)Lnet/minecraft/class_3966;official bLczv;b(Lfoh;Lfoh;)Lfoe;
-
canHit
- Overrides:
canHitin classProjectileEntity- Mappings:
Namespace Name Mixin selector named canHitLnet/minecraft/entity/projectile/ProjectileEntity;canHit(Lnet/minecraft/entity/Entity;)Zintermediary method_26958Lnet/minecraft/class_1676;method_26958(Lnet/minecraft/class_1297;)Zofficial bLdai;b(Lcdv;)Z
-
writeCustomData
- Overrides:
writeCustomDatain classProjectileEntity- Mappings:
Namespace Name Mixin selector named writeCustomDataLnet/minecraft/entity/Entity;writeCustomData(Lnet/minecraft/storage/WriteView;)Vintermediary method_5652Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_11372;)Vofficial aLcdv;a(Lfir;)V
-
readCustomData
- Overrides:
readCustomDatain classProjectileEntity- Mappings:
Namespace Name Mixin selector named readCustomDataLnet/minecraft/entity/Entity;readCustomData(Lnet/minecraft/storage/ReadView;)Vintermediary method_5749Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_11368;)Vofficial aLcdv;a(Lfip;)V
-
setOwner
- Overrides:
setOwnerin classProjectileEntity- Mappings:
Namespace Name Mixin selector named setOwnerLnet/minecraft/entity/projectile/ProjectileEntity;setOwner(Lnet/minecraft/entity/Entity;)Vintermediary method_7432Lnet/minecraft/class_1676;method_7432(Lnet/minecraft/class_1297;)Vofficial cLdai;c(Lcdv;)V
-
onPlayerCollision
Called 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 classEntity- Mappings:
Namespace Name Mixin selector named onPlayerCollisionLnet/minecraft/entity/Entity;onPlayerCollision(Lnet/minecraft/entity/player/PlayerEntity;)Vintermediary method_5694Lnet/minecraft/class_1297;method_5694(Lnet/minecraft/class_1657;)Vofficial a_Lcdv;a_(Lczl;)V
-
tryPickup
- Mappings:
Namespace Name Mixin selector named tryPickupLnet/minecraft/entity/projectile/PersistentProjectileEntity;tryPickup(Lnet/minecraft/entity/player/PlayerEntity;)Zintermediary method_34713Lnet/minecraft/class_1665;method_34713(Lnet/minecraft/class_1657;)Zofficial aLczv;a(Lczl;)Z
-
asItemStack
- Mappings:
Namespace Name Mixin selector named asItemStackLnet/minecraft/entity/projectile/PersistentProjectileEntity;asItemStack()Lnet/minecraft/item/ItemStack;intermediary method_7445Lnet/minecraft/class_1665;method_7445()Lnet/minecraft/class_1799;official mLczv;m()Ldhp;
-
getDefaultItemStack
- Mappings:
Namespace Name Mixin selector named getDefaultItemStackLnet/minecraft/entity/projectile/PersistentProjectileEntity;getDefaultItemStack()Lnet/minecraft/item/ItemStack;intermediary method_57314Lnet/minecraft/class_1665;method_57314()Lnet/minecraft/class_1799;official nLczv;n()Ldhp;
-
getMoveEffect
Returns the possible effect(s) of an entity moving.- Overrides:
getMoveEffectin classEntity- Implementation Note:
- If an entity does not emit game events or play move sounds, this method should be overridden as returning a value other than ALL allows skipping some movement logic and boost ticking performance.
- Mappings:
Namespace Name Mixin selector named getMoveEffectLnet/minecraft/entity/Entity;getMoveEffect()Lnet/minecraft/entity/Entity$MoveEffect;intermediary method_33570Lnet/minecraft/class_1297;method_33570()Lnet/minecraft/class_1297$class_5799;official brLcdv;br()Lcdv$d;
-
getItemStack
Returns the read-only item stack representing the projectile.This is the original stack used to spawn the projectile.
asItemStack()returns a copy of that stack which can be safely changed. Additionally,asItemStack()reflects changes to the entity data, such as custom potion ID.- Returns:
- the read-only item stack representing the projectile
- Mappings:
Namespace Name Mixin selector named getItemStackLnet/minecraft/entity/projectile/PersistentProjectileEntity;getItemStack()Lnet/minecraft/item/ItemStack;intermediary method_54759Lnet/minecraft/class_1665;method_54759()Lnet/minecraft/class_1799;official qLczv;q()Ldhp;
-
setDamage
public void setDamage(double damage) - Mappings:
Namespace Name Mixin selector named setDamageLnet/minecraft/entity/projectile/PersistentProjectileEntity;setDamage(D)Vintermediary method_7438Lnet/minecraft/class_1665;method_7438(D)Vofficial iLczv;i(D)V
-
isAttackable
public 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 classEntity- Returns:
- whether the entity can be attacked by players
- See Also:
- Mappings:
Namespace Name Mixin selector named isAttackableLnet/minecraft/entity/Entity;isAttackable()Zintermediary method_5732Lnet/minecraft/class_1297;method_5732()Zofficial cOLcdv;cO()Z
-
setCritical
public void setCritical(boolean critical) - Mappings:
Namespace Name Mixin selector named setCriticalLnet/minecraft/entity/projectile/PersistentProjectileEntity;setCritical(Z)Vintermediary method_7439Lnet/minecraft/class_1665;method_7439(Z)Vofficial bLczv;b(Z)V
-
setPierceLevel
private void setPierceLevel(byte level) - Mappings:
Namespace Name Mixin selector named setPierceLevelLnet/minecraft/entity/projectile/PersistentProjectileEntity;setPierceLevel(B)Vintermediary method_7451Lnet/minecraft/class_1665;method_7451(B)Vofficial aLczv;a(B)V
-
setProjectileFlag
private void setProjectileFlag(int index, boolean flag) - Mappings:
Namespace Name Mixin selector named setProjectileFlagLnet/minecraft/entity/projectile/PersistentProjectileEntity;setProjectileFlag(IZ)Vintermediary method_7455Lnet/minecraft/class_1665;method_7455(IZ)Vofficial aLczv;a(IZ)V
-
setStack
- Mappings:
Namespace Name Mixin selector named setStackLnet/minecraft/entity/projectile/PersistentProjectileEntity;setStack(Lnet/minecraft/item/ItemStack;)Vintermediary method_57313Lnet/minecraft/class_1665;method_57313(Lnet/minecraft/class_1799;)Vofficial aLczv;a(Ldhp;)V
-
isCritical
public boolean isCritical()- Mappings:
Namespace Name Mixin selector named isCriticalLnet/minecraft/entity/projectile/PersistentProjectileEntity;isCritical()Zintermediary method_7443Lnet/minecraft/class_1665;method_7443()Zofficial rLczv;r()Z
-
getPierceLevel
public byte getPierceLevel()- Mappings:
Namespace Name Mixin selector named getPierceLevelLnet/minecraft/entity/projectile/PersistentProjectileEntity;getPierceLevel()Bintermediary method_7447Lnet/minecraft/class_1665;method_7447()Bofficial sLczv;s()B
-
applyDamageModifier
public void applyDamageModifier(float damageModifier) - Mappings:
Namespace Name Mixin selector named applyDamageModifierLnet/minecraft/entity/projectile/PersistentProjectileEntity;applyDamageModifier(F)Vintermediary method_59955Lnet/minecraft/class_1665;method_59955(F)Vofficial aLczv;a(F)V
-
getDragInWater
protected float getDragInWater()- Mappings:
Namespace Name Mixin selector named getDragInWaterLnet/minecraft/entity/projectile/PersistentProjectileEntity;getDragInWater()Fintermediary method_7436Lnet/minecraft/class_1665;method_7436()Fofficial uLczv;u()F
-
setNoClip
public void setNoClip(boolean noClip) - Mappings:
Namespace Name Mixin selector named setNoClipLnet/minecraft/entity/projectile/PersistentProjectileEntity;setNoClip(Z)Vintermediary method_7433Lnet/minecraft/class_1665;method_7433(Z)Vofficial rLczv;r(Z)V
-
isNoClip
public boolean isNoClip()- Mappings:
Namespace Name Mixin selector named isNoClipLnet/minecraft/entity/projectile/PersistentProjectileEntity;isNoClip()Zintermediary method_7441Lnet/minecraft/class_1665;method_7441()Zofficial vLczv;v()Z
-
canHit
public boolean canHit()Returns whether the entity can be hit with a projectile or be targeted by the player crosshair.- Overrides:
canHitin classProjectileEntity- Returns:
- whether the entity can be hit with a projectile or be targeted by the player crosshair
- Mappings:
Namespace Name Mixin selector named canHitLnet/minecraft/entity/Entity;canHit()Zintermediary method_5863Lnet/minecraft/class_1297;method_5863()Zofficial bTLcdv;bT()Z
-
getStackReference
Obtains a stack reference to be modified. Used by commands like/lootor/item.- Overrides:
getStackReferencein classEntity- Parameters:
mappedIndex- the mapped index as given by the item slot argument- See Also:
- Mappings:
Namespace Name Mixin selector named getStackReferenceLnet/minecraft/entity/Entity;getStackReference(I)Lnet/minecraft/inventory/StackReference;intermediary method_32318Lnet/minecraft/class_1297;method_32318(I)Lnet/minecraft/class_5630;official a_Lcdv;a_(I)Lcfn;
-
deflectsAgainstWorldBorder
protected boolean deflectsAgainstWorldBorder()- Overrides:
deflectsAgainstWorldBorderin classProjectileEntity- Mappings:
Namespace Name Mixin selector named deflectsAgainstWorldBorderLnet/minecraft/entity/projectile/ProjectileEntity;deflectsAgainstWorldBorder()Zintermediary method_62823Lnet/minecraft/class_1676;method_62823()Zofficial wLdai;w()Z
-