Package net.minecraft.entity.projectile
Class ProjectileEntity
java.lang.Object
net.minecraft.entity.Entity
net.minecraft.entity.projectile.ProjectileEntity
- All Implemented Interfaces:
EntityLike
,CommandOutput
,Nameable
- Direct Known Subclasses:
ExplosiveProjectileEntity
,FireworkRocketEntity
,FishingBobberEntity
,LlamaSpitEntity
,PersistentProjectileEntity
,ShulkerBulletEntity
,ThrownEntity
public abstract class ProjectileEntity extends Entity
- Mappings:
Namespace Name official bib
intermediary net/minecraft/class_1676
named net/minecraft/entity/projectile/ProjectileEntity
-
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 private boolean
field_28646
private boolean
leftOwner
private int
ownerEntityId
private UUID
ownerUuid
Fields 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, yaw
Fields inherited from interface net.minecraft.server.command.CommandOutput
DUMMY
-
Constructor Summary
Constructors Constructor Description ProjectileEntity(EntityType<? extends ProjectileEntity> type, World world)
-
Method Summary
Modifier and Type Method Description protected boolean
canHit(Entity entity)
Packet<?>
createSpawnPacket()
Entity
getOwner()
protected void
onBlockHit(BlockHitResult blockHitResult)
protected void
onCollision(HitResult hitResult)
protected void
onEntityHit(EntityHitResult entityHitResult)
void
onSpawnPacket(EntitySpawnS2CPacket packet)
protected void
readCustomDataFromTag(CompoundTag tag)
void
setOwner(Entity entity)
void
setProperties(Entity user, float pitch, float yaw, float roll, float modifierZ, float modifierXYZ)
void
setVelocity(double x, double y, double z, float speed, float divergence)
void
setVelocityClient(double x, double y, double z)
private boolean
shouldLeaveOwner()
void
tick()
protected void
updateRotation()
protected static float
updateRotation(float prevRot, float newRot)
protected void
writeCustomDataToTag(CompoundTag tag)
Methods 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, initDataTracker, 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, 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, wouldPoseNotCollide
-
Field Details
-
ownerUuid
- Mappings:
Namespace Name Mixin selector official b
Lbib;b:Ljava/util/UUID;
intermediary field_22478
Lnet/minecraft/class_1676;field_22478:Ljava/util/UUID;
named ownerUuid
Lnet/minecraft/entity/projectile/ProjectileEntity;ownerUuid:Ljava/util/UUID;
-
ownerEntityId
private int ownerEntityId- Mappings:
Namespace Name Mixin selector official c
Lbib;c:I
intermediary field_23739
Lnet/minecraft/class_1676;field_23739:I
named ownerEntityId
Lnet/minecraft/entity/projectile/ProjectileEntity;ownerEntityId:I
-
leftOwner
private boolean leftOwner- Mappings:
Namespace Name Mixin selector official d
Lbib;d:Z
intermediary field_23740
Lnet/minecraft/class_1676;field_23740:Z
named leftOwner
Lnet/minecraft/entity/projectile/ProjectileEntity;leftOwner:Z
-
field_28646
private boolean field_28646- Mappings:
Namespace Name Mixin selector official e
Lbib;e:Z
intermediary field_28646
Lnet/minecraft/class_1676;field_28646:Z
named field_28646
Lnet/minecraft/entity/projectile/ProjectileEntity;field_28646:Z
-
-
Constructor Details
-
ProjectileEntity
ProjectileEntity(EntityType<? extends ProjectileEntity> type, World world)- Mappings:
Namespace Name Mixin selector official <init>
Laqv;<init>(Laqz;Lbtv;)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
-
-
Method Details
-
setOwner
- Mappings:
Namespace Name Mixin selector official b
Lbib;b(Laqv;)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
-
getOwner
- Mappings:
Namespace Name Mixin selector official v
Lbib;v()Laqv;
intermediary method_24921
Lnet/minecraft/class_1676;method_24921()Lnet/minecraft/class_1297;
named getOwner
Lnet/minecraft/entity/projectile/ProjectileEntity;getOwner()Lnet/minecraft/entity/Entity;
-
writeCustomDataToTag
- Specified by:
writeCustomDataToTag
in classEntity
- Mappings:
Namespace Name Mixin selector official b
Laqv;b(Lmq;)V
intermediary method_5652
Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
named writeCustomDataToTag
Lnet/minecraft/entity/Entity;writeCustomDataToTag(Lnet/minecraft/nbt/CompoundTag;)V
-
readCustomDataFromTag
- Specified by:
readCustomDataFromTag
in classEntity
- Mappings:
Namespace Name Mixin selector official a
Laqv;a(Lmq;)V
intermediary method_5749
Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
named readCustomDataFromTag
Lnet/minecraft/entity/Entity;readCustomDataFromTag(Lnet/minecraft/nbt/CompoundTag;)V
-
tick
public void tick() -
shouldLeaveOwner
private boolean shouldLeaveOwner()- Mappings:
Namespace Name Mixin selector official h
Lbib;h()Z
intermediary method_26961
Lnet/minecraft/class_1676;method_26961()Z
named shouldLeaveOwner
Lnet/minecraft/entity/projectile/ProjectileEntity;shouldLeaveOwner()Z
-
setVelocity
public void setVelocity(double x, double y, double z, float speed, float divergence)- Mappings:
Namespace Name Mixin selector official c
Lbib;c(DDDFF)V
intermediary method_7485
Lnet/minecraft/class_1676;method_7485(DDDFF)V
named setVelocity
Lnet/minecraft/entity/projectile/ProjectileEntity;setVelocity(DDDFF)V
-
setProperties
public void setProperties(Entity user, float pitch, float yaw, float roll, float modifierZ, float modifierXYZ)- Mappings:
Namespace Name Mixin selector official a
Lbib;a(Laqv;FFFFF)V
intermediary method_24919
Lnet/minecraft/class_1676;method_24919(Lnet/minecraft/class_1297;FFFFF)V
named setProperties
Lnet/minecraft/entity/projectile/ProjectileEntity;setProperties(Lnet/minecraft/entity/Entity;FFFFF)V
-
onCollision
- Mappings:
Namespace Name Mixin selector official a
Lbib;a(Ldis;)V
intermediary method_7488
Lnet/minecraft/class_1676;method_7488(Lnet/minecraft/class_239;)V
named onCollision
Lnet/minecraft/entity/projectile/ProjectileEntity;onCollision(Lnet/minecraft/util/hit/HitResult;)V
-
onEntityHit
- Mappings:
Namespace Name Mixin selector official a
Lbib;a(Ldir;)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
- Mappings:
Namespace Name Mixin selector official a
Lbib;a(Ldiq;)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
-
setVelocityClient
- Overrides:
setVelocityClient
in classEntity
- Mappings:
Namespace Name Mixin selector official k
Laqv;k(DDD)V
intermediary method_5750
Lnet/minecraft/class_1297;method_5750(DDD)V
named setVelocityClient
Lnet/minecraft/entity/Entity;setVelocityClient(DDD)V
-
canHit
- Mappings:
Namespace Name Mixin selector official a
Lbib;a(Laqv;)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
-
updateRotation
protected void updateRotation()- Mappings:
Namespace Name Mixin selector official w
Lbib;w()V
intermediary method_26962
Lnet/minecraft/class_1676;method_26962()V
named updateRotation
Lnet/minecraft/entity/projectile/ProjectileEntity;updateRotation()V
-
updateRotation
protected static float updateRotation(float prevRot, float newRot)- Mappings:
Namespace Name Mixin selector official d
Lbib;d(FF)F
intermediary method_26960
Lnet/minecraft/class_1676;method_26960(FF)F
named updateRotation
Lnet/minecraft/entity/projectile/ProjectileEntity;updateRotation(FF)F
-
createSpawnPacket
- Specified by:
createSpawnPacket
in classEntity
- Mappings:
Namespace Name Mixin selector official P
Laqv;P()Lpa;
intermediary method_18002
Lnet/minecraft/class_1297;method_18002()Lnet/minecraft/class_2596;
named createSpawnPacket
Lnet/minecraft/entity/Entity;createSpawnPacket()Lnet/minecraft/network/Packet;
-
onSpawnPacket
- Overrides:
onSpawnPacket
in classEntity
- Mappings:
Namespace Name Mixin selector official a
Laqv;a(Lpe;)V
intermediary method_31471
Lnet/minecraft/class_1297;method_31471(Lnet/minecraft/class_2604;)V
named onSpawnPacket
Lnet/minecraft/entity/Entity;onSpawnPacket(Lnet/minecraft/network/packet/s2c/play/EntitySpawnS2CPacket;)V
-