Package net.minecraft.entity.projectile
Class ProjectileEntity
java.lang.Object
net.minecraft.entity.Entity
net.minecraft.entity.projectile.ProjectileEntity
- All Implemented Interfaces:
CommandSource
- Direct Known Subclasses:
FireballEntity,SmallFireballEntity,WitherSkullEntity
public abstract class ProjectileEntity extends Entity
A base class for projectile entities.
- Mappings:
Namespace Name official wsintermediary net/minecraft/class_1969named net/minecraft/entity/projectile/ProjectileEntity
-
Field Summary
Fields Modifier and Type Field Description doubleaccelerationXdoubleaccelerationYdoubleaccelerationZprivate intblockXprivate intblockYprivate intblockZprivate intfield_8405private intfield_8406private BlockinBlockprivate booleaninGroundLivingEntitytargetFields inherited from class net.minecraft.entity.Entity
changingDimension, colliding, dataTracker, dimension, distanceTraveled, fallDistance, field_7357, field_7362, field_7363, field_7364, field_7365, field_7370, field_7390, fireResistance, firstUpdate, height, horizontalCollision, horizontalSpeed, ignoreCameraFrustum, inLava, isFireImmune, lastPortalBlockPos, lastPortalVec3d, netherPortalCooldown, noClip, onGround, pitch, playerUuid, prevHorizontalSpeed, prevPitch, prevTickX, prevTickY, prevTickZ, prevX, prevY, prevYaw, prevZ, pushSpeedReduction, random, removed, renderDistanceMultiplier, rider, stepHeight, teleportDirection, teleporting, ticksAlive, touchingWater, trackedX, trackedY, trackedZ, vehicle, velocityDirty, velocityModified, velocityX, velocityY, velocityZ, verticalCollision, width, world, x, y, yaw, z -
Constructor Summary
Constructors Constructor Description ProjectileEntity(World world)ProjectileEntity(World world, double x, double y, double z, double accelerationX, double accelerationY, double accelerationZ)ProjectileEntity(World world, LivingEntity target, double accelerationXModifier, double accelerationYModifier, double accelerationZModifier) -
Method Summary
Modifier and Type Method Description booleancollides()booleandamage(DamageSource source, float amount)voiddeserialize(CompoundTag tag)protected voidinitDataTracker()floatmethod_6984()intmethod_6998(float float2)floatmethod_7008(float float2)protected abstract voidmethod_8065(HitResult hitResult)protected floatmethod_8066()voidserialize(CompoundTag tag)booleanshouldRender(double distance)voidtick()Methods inherited from class net.minecraft.entity.Entity
addVelocity, afterSpawn, animateDamage, attemptSprintingParticles, baseTick, burn, canAvoidTraps, canClimb, canFly, canUseCommand, checkBlockCollision, copyPortalInfo, copyPosition, destroy, doesNotCollide, doesRenderOnFire, equals, equip, extinguish, fall, fromClientTag, fromTag, getAir, getArmorStacks, getBlastResistance, getBlockPos, getBoundingBox, getBox, getCameraPosVec, getCommandStats, getCustomName, getDataTracker, getDefaultNetherPortalCooldown, getDistanceTo, getEntity, getEntityId, getEyeHeight, getFlag, getHardCollisionBox, getHeadRotation, getHeightOffset, getHorizontalDirection, getHoverEvent, getLastNetherPortalDirection, getLastNetherPortalDirectionVector, getMaxNetherPortalTime, getMountedHeightOffset, getName, getPos, getRotationVector, getRotationVector, getSafeFallDistance, getSavedEntityId, getSplashSound, getSwimSound, getTranslationKey, getUuid, getWorld, handleAttack, handleFallDamage, handleStatus, hasCustomName, hashCode, hasVehicle, increaseTransforms, interactAt, isAlive, isAttackable, isCustomNameVisible, isFireImmune, isImmuneToExplosion, isInsideWall, isInvisible, isInvisibleTo, isInvulnerableTo, isOnFire, isOutsideWorldborder, isPartOf, isPushable, isSilent, isSneaking, isSpectatedBy, isSprinting, isSubmergedIn, isTouchingWater, kill, method_6912, method_6924, method_6926, method_6939, method_6940, method_6943, method_6944, method_6945, method_6948, method_6949, method_6968, method_6971, method_6977, method_6981, method_6985, method_6994, method_7020, method_7049, method_7051, method_7058, move, onLightningStrike, onPlayerCollision, onSwimmingStart, openInventory, playSound, playStepSound, populateCrashReport, pushAwayFrom, rayTrace, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, remove, saveSelfToTag, scheduleVelocityUpdate, sendCommandFeedback, sendMessage, setAir, setArmorSlot, setBoundingBox, setBounds, setCustomName, setCustomNameVisible, setEntityId, setFlag, setHeadYaw, setInNetherPortal, setInvisible, setOnFireFor, setOnFireFromLava, setOutsideWorldborder, setRotation, setSilent, setSneaking, setSprinting, setStat, setSwimming, setVelocityClient, setWorld, setYaw, shouldRender, shouldRenderName, shouldSetPositionOnLoad, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, squaredDistanceToCenter, squaredDistanceToEntity, startRiding, teleportToDimension, tickFire, tickRiding, toListTag, toListTag, toString, updateKilledAdvancementCriterion, updatePosition, updatePositionAndAngles, updateTrackedPositionAndAngles, writePlayerData
-
Field Details
-
blockX
private int blockX- Mappings:
Namespace Name Mixin selector official eLws;e:Iintermediary field_8410Lnet/minecraft/class_1969;field_8410:Inamed blockXLnet/minecraft/entity/projectile/ProjectileEntity;blockX:I
-
blockY
private int blockY- Mappings:
Namespace Name Mixin selector official fLws;f:Iintermediary field_8411Lnet/minecraft/class_1969;field_8411:Inamed blockYLnet/minecraft/entity/projectile/ProjectileEntity;blockY:I
-
blockZ
private int blockZ- Mappings:
Namespace Name Mixin selector official gLws;g:Iintermediary field_8412Lnet/minecraft/class_1969;field_8412:Inamed blockZLnet/minecraft/entity/projectile/ProjectileEntity;blockZ:I
-
inBlock
- Mappings:
Namespace Name Mixin selector official hLws;h:Lafh;intermediary field_8413Lnet/minecraft/class_1969;field_8413:Lnet/minecraft/class_160;named inBlockLnet/minecraft/entity/projectile/ProjectileEntity;inBlock:Lnet/minecraft/block/Block;
-
inGround
private boolean inGround- Mappings:
Namespace Name Mixin selector official iLws;i:Zintermediary field_8414Lnet/minecraft/class_1969;field_8414:Znamed inGroundLnet/minecraft/entity/projectile/ProjectileEntity;inGround:Z
-
target
- Mappings:
Namespace Name Mixin selector official aLws;a:Lpr;intermediary field_8404Lnet/minecraft/class_1969;field_8404:Lnet/minecraft/class_1752;named targetLnet/minecraft/entity/projectile/ProjectileEntity;target:Lnet/minecraft/entity/LivingEntity;
-
field_8405
private int field_8405- Mappings:
Namespace Name Mixin selector official arLws;ar:Iintermediary field_8405Lnet/minecraft/class_1969;field_8405:Inamed field_8405Lnet/minecraft/entity/projectile/ProjectileEntity;field_8405:I
-
field_8406
private int field_8406- Mappings:
Namespace Name Mixin selector official asLws;as:Iintermediary field_8406Lnet/minecraft/class_1969;field_8406:Inamed field_8406Lnet/minecraft/entity/projectile/ProjectileEntity;field_8406:I
-
accelerationX
public double accelerationX- Mappings:
Namespace Name Mixin selector official bLws;b:Dintermediary field_8407Lnet/minecraft/class_1969;field_8407:Dnamed accelerationXLnet/minecraft/entity/projectile/ProjectileEntity;accelerationX:D
-
accelerationY
public double accelerationY- Mappings:
Namespace Name Mixin selector official cLws;c:Dintermediary field_8408Lnet/minecraft/class_1969;field_8408:Dnamed accelerationYLnet/minecraft/entity/projectile/ProjectileEntity;accelerationY:D
-
accelerationZ
public double accelerationZ- Mappings:
Namespace Name Mixin selector official dLws;d:Dintermediary field_8409Lnet/minecraft/class_1969;field_8409:Dnamed accelerationZLnet/minecraft/entity/projectile/ProjectileEntity;accelerationZ:D
-
-
Constructor Details
-
ProjectileEntity
- Mappings:
Namespace Name Mixin selector official <init>Lpk;<init>(Ladm;)Vintermediary <init>Lnet/minecraft/class_1745;<init>(Lnet/minecraft/class_99;)Vnamed <init>Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/world/World;)V
-
ProjectileEntity
public ProjectileEntity(World world, double x, double y, double z, double accelerationX, double accelerationY, double accelerationZ)- Mappings:
Namespace Name Mixin selector official <init>Lws;<init>(Ladm;DDDDDD)Vintermediary <init>Lnet/minecraft/class_1969;<init>(Lnet/minecraft/class_99;DDDDDD)Vnamed <init>Lnet/minecraft/entity/projectile/ProjectileEntity;<init>(Lnet/minecraft/world/World;DDDDDD)V
-
ProjectileEntity
public ProjectileEntity(World world, LivingEntity target, double accelerationXModifier, double accelerationYModifier, double accelerationZModifier)- Mappings:
Namespace Name Mixin selector official <init>Lws;<init>(Ladm;Lpr;DDD)Vintermediary <init>Lnet/minecraft/class_1969;<init>(Lnet/minecraft/class_99;Lnet/minecraft/class_1752;DDD)Vnamed <init>Lnet/minecraft/entity/projectile/ProjectileEntity;<init>(Lnet/minecraft/world/World;Lnet/minecraft/entity/LivingEntity;DDD)V
-
-
Method Details
-
initDataTracker
protected void initDataTracker()- Specified by:
initDataTrackerin classEntity- Mappings:
Namespace Name Mixin selector official hLpk;h()Vintermediary method_7043Lnet/minecraft/class_1745;method_7043()Vnamed initDataTrackerLnet/minecraft/entity/Entity;initDataTracker()V
-
shouldRender
- Overrides:
shouldRenderin classEntity- Mappings:
Namespace Name Mixin selector official aLpk;a(D)Zintermediary method_6917Lnet/minecraft/class_1745;method_6917(D)Znamed shouldRenderLnet/minecraft/entity/Entity;shouldRender(D)Z
-
tick
public void tick() -
method_8066
protected float method_8066()- Mappings:
Namespace Name Mixin selector official jLws;j()Fintermediary method_8066Lnet/minecraft/class_1969;method_8066()Fnamed method_8066Lnet/minecraft/entity/projectile/ProjectileEntity;method_8066()F
-
method_8065
- Mappings:
Namespace Name Mixin selector official aLws;a(Lauh;)Vintermediary method_8065Lnet/minecraft/class_1969;method_8065(Lnet/minecraft/class_647;)Vnamed method_8065Lnet/minecraft/entity/projectile/ProjectileEntity;method_8065(Lnet/minecraft/util/hit/HitResult;)V
-
serialize
-
deserialize
- Specified by:
deserializein classEntity- Mappings:
Namespace Name Mixin selector official aLpk;a(Ldn;)Vintermediary method_6933Lnet/minecraft/class_1745;method_6933(Lnet/minecraft/class_1405;)Vnamed deserializeLnet/minecraft/entity/Entity;deserialize(Lnet/minecraft/nbt/CompoundTag;)V
-
collides
public boolean collides() -
method_6984
public float method_6984()- Overrides:
method_6984in classEntity- Mappings:
Namespace Name Mixin selector official aoLpk;ao()Fintermediary method_6984Lnet/minecraft/class_1745;method_6984()Fnamed method_6984Lnet/minecraft/entity/Entity;method_6984()F
-
damage
-
method_7008
public float method_7008(float float2)- Overrides:
method_7008in classEntity- Mappings:
Namespace Name Mixin selector official cLpk;c(F)Fintermediary method_7008Lnet/minecraft/class_1745;method_7008(F)Fnamed method_7008Lnet/minecraft/entity/Entity;method_7008(F)F
-
method_6998
- Overrides:
method_6998in classEntity- Mappings:
Namespace Name Mixin selector official bLpk;b(F)Iintermediary method_6998Lnet/minecraft/class_1745;method_6998(F)Inamed method_6998Lnet/minecraft/entity/Entity;method_6998(F)I
-