Package net.minecraft.entity.projectile
Class ProjectileEntity
java.lang.Object
net.minecraft.entity.Entity
net.minecraft.entity.projectile.ProjectileEntity
- All Implemented Interfaces:
CommandOutput,Nameable,EntityLike
- Direct Known Subclasses:
ExplosiveProjectileEntity,FireworkRocketEntity,FishingBobberEntity,LlamaSpitEntity,PersistentProjectileEntity,ShulkerBulletEntity,ThrownEntity
- Mappings:
Namespace Name official bktintermediary net/minecraft/class_1676named net/minecraft/entity/projectile/ProjectileEntity
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.MoveEffect, Entity.PositionUpdater, Entity.RemovalReason -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate booleanFields inherited from class net.minecraft.entity.Entity
age, dataTracker, distanceTraveled, FALL_FLYING_FLAG_INDEX, fallDistance, field_28627, field_29973, field_29974, field_29987, field_29988, field_29989, field_29990, field_29991, field_29992, field_29993, firstUpdate, FLAGS, fluidHeight, GLOWING_FLAG_INDEX, horizontalCollision, horizontalSpeed, ID_KEY, ignoreCameraFrustum, inanimate, inNetherPortal, inPowderSnow, lastNetherPortalPosition, lastRenderX, lastRenderY, lastRenderZ, LOGGER, movementMultiplier, netherPortalTime, noClip, ON_FIRE_FLAG_INDEX, onGround, PASSENGERS_KEY, POSE, prevHorizontalSpeed, prevPitch, prevX, prevY, prevYaw, prevZ, random, ridingCooldown, stepHeight, submergedFluidTag, submergedInWater, timeUntilRegen, touchingWater, uuid, UUID_KEY, uuidString, velocityDirty, velocityModified, verticalCollision, wasInPowderSnow, wasOnFire, worldFields inherited from interface net.minecraft.server.command.CommandOutput
DUMMY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleancanModifyAt(World world, BlockPos pos)Packet<?>getOwner()protected booleanprotected voidonBlockHit(BlockHitResult blockHitResult)protected voidonCollision(HitResult hitResult)protected voidonEntityHit(EntityHitResult entityHitResult)voidonSpawnPacket(EntitySpawnS2CPacket packet)protected voidvoidvoidsetProperties(Entity user, float pitch, float yaw, float roll, float modifierZ, float modifierXYZ)voidsetVelocity(double x, double y, double z, float speed, float divergence)voidsetVelocityClient(double x, double y, double z)private booleanvoidtick()protected voidprotected static floatupdateRotation(float prevRot, float newRot)protected voidMethods inherited from class net.minecraft.entity.Entity
addAirTravelEffects, addFlapEffects, addPassenger, addScoreboardTag, addVelocity, adjustMovementForCollisions, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, adjustSingleAxisMovementForCollisions, animateDamage, applyMirror, applyRotation, attemptTickInVoid, baseTick, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundingBox, calculateBoundsForPose, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeRiddenInWater, canBeSpectated, canExplosionDestroyBlock, 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, emitGameEvent, emitGameEvent, entityDataRequiresOperator, equals, equipStack, extinguish, fall, getAir, getArmorItems, getBlockPos, getBlockStateAtPos, getBlockX, getBlockY, getBlockZ, getBodyY, getBoundingBox, getBrightnessAtEyes, getBurningDuration, getCameraBlockPos, getCameraPosVec, getChunkPos, getClientCameraPosVec, getCommandItemSlot, getCommandSource, getCustomName, getDataTracker, getDefaultName, getDefaultNetherPortalCooldown, getDimensions, getDisplayName, getEffectiveExplosionResistance, getEntityName, getEntityWorld, getEyeHeight, getEyeHeight, getEyePos, getEyeY, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getGameEventHandler, getHeadYaw, getHeight, getHeightOffset, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getItemsEquipped, getItemsHand, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLeashOffset, getLerpedPos, getMaxAir, getMaxNetherPortalTime, getMinFreezeDamageTicks, getMountedHeightOffset, getMoveEffect, getMovementDirection, getName, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerDismountOffset, getPassengerList, getPassengersDeep, getPermissionLevel, getPickBlockStack, getPistonBehavior, getPitch, getPitch, getPortalRect, getPos, getPose, getPrimaryPassenger, getRandomBodyY, getRemovalReason, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSafeFallDistance, getSavedEntityId, getScoreboardTags, getScoreboardTeam, getServer, getSoundCategory, getSplashSound, getStandingEyeHeight, getSwimHeight, getSwimSound, getTargetingMargin, getTeamColorValue, getTeleportTarget, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVelocity, getVelocityAffectingPos, getVelocityMultiplier, getVisibilityBoundingBox, getWidth, getX, getY, getYaw, 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, isGlowingLocal, isImmuneToExplosion, isInLava, isInRange, isInsideWall, isInsideWaterOrBubbleColumn, isInSneakingPose, isInSwimmingPose, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isLiving, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isPartOf, isPlayer, isPushable, isPushedByFluids, isRegionUnloaded, isRemoved, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSubmergedInWater, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, isWet, kill, lookAt, method_30951, move, moveToWorld, occludeVibrationSignals, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onKilledOther, onPassengerLookAround, onPlayerCollision, onRemoved, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, onTrackedDataSet, playExtinguishSound, playSound, playStepSound, playSwimSound, populateCrashReport, positionInPortal, pushAwayFrom, pushOutOfBlocks, raycast, readNbt, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, remove, removeAllPassengers, removeFromDimension, removePassenger, removeScoreboardTag, requestTeleport, requestTeleportAndDismount, resetNetherPortalCooldown, resetPosition, saveNbt, saveSelfNbt, scheduleVelocityUpdate, sendSystemMessage, setAir, setBodyYaw, setBoundingBox, setCustomName, setCustomNameVisible, setEntityId, setFireTicks, setFlag, setFrozenTicks, setGlowing, setHeadYaw, setInNetherPortal, setInPowderSnow, setInvisible, setInvulnerable, setListener, setNoGravity, setOnFire, setOnFireFor, setOnFireFromLava, setOnGround, setPitch, setPos, setPose, setPosition, 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, startRiding, startRiding, stopRiding, streamPassengersAndSelf, streamSelfAndPassengers, teleport, tickInVoid, tickNetherPortal, tickNetherPortalCooldown, tickRiding, toNbtList, toNbtList, toString, tryCheckBlockCollision, unsetRemoved, updateKilledAdvancementCriterion, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSwimming, updateTrackedHeadRotation, updateTrackedPosition, updateTrackedPosition, updateTrackedPositionAndAngles, updateVelocity, updateWaterState, wouldPoseNotCollide, writeNbtMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.server.command.CommandOutput
cannotBeSilenced
-
Field Details
-
ownerUuid
- Mappings:
Namespace Name Mixin selector official bLbkt;b:Ljava/util/UUID;intermediary field_22478Lnet/minecraft/class_1676;field_22478:Ljava/util/UUID;named ownerUuidLnet/minecraft/entity/projectile/ProjectileEntity;ownerUuid:Ljava/util/UUID;
-
owner
- Mappings:
Namespace Name Mixin selector official cLbkt;c:Latf;intermediary field_33399Lnet/minecraft/class_1676;field_33399:Lnet/minecraft/class_1297;named ownerLnet/minecraft/entity/projectile/ProjectileEntity;owner:Lnet/minecraft/entity/Entity;
-
leftOwner
private boolean leftOwner- Mappings:
Namespace Name Mixin selector official dLbkt;d:Zintermediary field_23740Lnet/minecraft/class_1676;field_23740:Znamed leftOwnerLnet/minecraft/entity/projectile/ProjectileEntity;leftOwner:Z
-
shot
private boolean shot- Mappings:
Namespace Name Mixin selector official eLbkt;e:Zintermediary field_28646Lnet/minecraft/class_1676;field_28646:Znamed shotLnet/minecraft/entity/projectile/ProjectileEntity;shot:Z
-
-
Constructor Details
-
ProjectileEntity
ProjectileEntity(EntityType<? extends ProjectileEntity> type, World world)- Mappings:
Namespace Name Mixin selector official <init>Latf;<init>(Latj;Lbwp;)Vintermediary <init>Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)Vnamed <init>Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
-
-
Method Details
-
setOwner
- Mappings:
Namespace Name Mixin selector official bLbkt;b(Latf;)Vintermediary method_7432Lnet/minecraft/class_1676;method_7432(Lnet/minecraft/class_1297;)Vnamed setOwnerLnet/minecraft/entity/projectile/ProjectileEntity;setOwner(Lnet/minecraft/entity/Entity;)V
-
getOwner
- Mappings:
Namespace Name Mixin selector official wLbkt;w()Latf;intermediary method_24921Lnet/minecraft/class_1676;method_24921()Lnet/minecraft/class_1297;named getOwnerLnet/minecraft/entity/projectile/ProjectileEntity;getOwner()Lnet/minecraft/entity/Entity;
-
method_37225
- Mappings:
Namespace Name Mixin selector official xLbkt;x()Latf;intermediary method_37225Lnet/minecraft/class_1676;method_37225()Lnet/minecraft/class_1297;named method_37225Lnet/minecraft/entity/projectile/ProjectileEntity;method_37225()Lnet/minecraft/entity/Entity;
-
writeCustomDataToNbt
- Specified by:
writeCustomDataToNbtin classEntity- Mappings:
Namespace Name Mixin selector official bLatf;b(Lna;)Vintermediary method_5652Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)Vnamed writeCustomDataToNbtLnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
isOwner
- Mappings:
Namespace Name Mixin selector official dLbkt;d(Latf;)Zintermediary method_34714Lnet/minecraft/class_1676;method_34714(Lnet/minecraft/class_1297;)Znamed isOwnerLnet/minecraft/entity/projectile/ProjectileEntity;isOwner(Lnet/minecraft/entity/Entity;)Z
-
readCustomDataFromNbt
- Specified by:
readCustomDataFromNbtin classEntity- Mappings:
Namespace Name Mixin selector official aLatf;a(Lna;)Vintermediary method_5749Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)Vnamed readCustomDataFromNbtLnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
tick
public void tick() -
shouldLeaveOwner
private boolean shouldLeaveOwner()- Mappings:
Namespace Name Mixin selector official iLbkt;i()Zintermediary method_26961Lnet/minecraft/class_1676;method_26961()Znamed shouldLeaveOwnerLnet/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 cLbkt;c(DDDFF)Vintermediary method_7485Lnet/minecraft/class_1676;method_7485(DDDFF)Vnamed setVelocityLnet/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 aLbkt;a(Latf;FFFFF)Vintermediary method_24919Lnet/minecraft/class_1676;method_24919(Lnet/minecraft/class_1297;FFFFF)Vnamed setPropertiesLnet/minecraft/entity/projectile/ProjectileEntity;setProperties(Lnet/minecraft/entity/Entity;FFFFF)V
-
onCollision
- Mappings:
Namespace Name Mixin selector official aLbkt;a(Ldmy;)Vintermediary method_7488Lnet/minecraft/class_1676;method_7488(Lnet/minecraft/class_239;)Vnamed onCollisionLnet/minecraft/entity/projectile/ProjectileEntity;onCollision(Lnet/minecraft/util/hit/HitResult;)V
-
onEntityHit
- Mappings:
Namespace Name Mixin selector official aLbkt;a(Ldmx;)Vintermediary method_7454Lnet/minecraft/class_1676;method_7454(Lnet/minecraft/class_3966;)Vnamed onEntityHitLnet/minecraft/entity/projectile/ProjectileEntity;onEntityHit(Lnet/minecraft/util/hit/EntityHitResult;)V
-
onBlockHit
- Mappings:
Namespace Name Mixin selector official aLbkt;a(Ldmw;)Vintermediary method_24920Lnet/minecraft/class_1676;method_24920(Lnet/minecraft/class_3965;)Vnamed onBlockHitLnet/minecraft/entity/projectile/ProjectileEntity;onBlockHit(Lnet/minecraft/util/hit/BlockHitResult;)V
-
setVelocityClient
public void setVelocityClient(double x, double y, double z)- Overrides:
setVelocityClientin classEntity- Mappings:
Namespace Name Mixin selector official kLatf;k(DDD)Vintermediary method_5750Lnet/minecraft/class_1297;method_5750(DDD)Vnamed setVelocityClientLnet/minecraft/entity/Entity;setVelocityClient(DDD)V
-
canHit
- Mappings:
Namespace Name Mixin selector official aLbkt;a(Latf;)Zintermediary method_26958Lnet/minecraft/class_1676;method_26958(Lnet/minecraft/class_1297;)Znamed canHitLnet/minecraft/entity/projectile/ProjectileEntity;canHit(Lnet/minecraft/entity/Entity;)Z
-
updateRotation
protected void updateRotation()- Mappings:
Namespace Name Mixin selector official zLbkt;z()Vintermediary method_26962Lnet/minecraft/class_1676;method_26962()Vnamed updateRotationLnet/minecraft/entity/projectile/ProjectileEntity;updateRotation()V
-
updateRotation
protected static float updateRotation(float prevRot, float newRot)- Mappings:
Namespace Name Mixin selector official dLbkt;d(FF)Fintermediary method_26960Lnet/minecraft/class_1676;method_26960(FF)Fnamed updateRotationLnet/minecraft/entity/projectile/ProjectileEntity;updateRotation(FF)F
-
createSpawnPacket
- Specified by:
createSpawnPacketin classEntity- Mappings:
Namespace Name Mixin selector official PLatf;P()Lpk;intermediary method_18002Lnet/minecraft/class_1297;method_18002()Lnet/minecraft/class_2596;named createSpawnPacketLnet/minecraft/entity/Entity;createSpawnPacket()Lnet/minecraft/network/Packet;
-
onSpawnPacket
- Overrides:
onSpawnPacketin classEntity- Mappings:
Namespace Name Mixin selector official aLatf;a(Lpo;)Vintermediary method_31471Lnet/minecraft/class_1297;method_31471(Lnet/minecraft/class_2604;)Vnamed onSpawnPacketLnet/minecraft/entity/Entity;onSpawnPacket(Lnet/minecraft/network/packet/s2c/play/EntitySpawnS2CPacket;)V
-
canModifyAt
- Overrides:
canModifyAtin classEntity- Mappings:
Namespace Name Mixin selector official aLatf;a(Lbwp;Lgg;)Zintermediary method_36971Lnet/minecraft/class_1297;method_36971(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Znamed canModifyAtLnet/minecraft/entity/Entity;canModifyAt(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z
-