Package net.minecraft.entity.thrown
Class ThrowableEntity
java.lang.Object
net.minecraft.entity.Entity
net.minecraft.entity.thrown.ThrowableEntity
- All Implemented Interfaces:
CommandSource,Projectile
- Direct Known Subclasses:
EggEntity,EnderPearlEntity,ExperienceBottleEntity,PotionEntity,SnowballEntity
public abstract class ThrowableEntity extends Entity implements Projectile
- Mappings:
Namespace Name official wyintermediary net/minecraft/class_1975named net/minecraft/entity/thrown/ThrowableEntity
-
Field Summary
Fields Modifier and Type Field Description private intblockXprivate intblockYprivate intblockZprivate intfield_8419private LivingEntityfield_8425private Stringfield_8426private intfield_8427private BlockinBlockprotected booleaninGroundintshakeFields 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 ThrowableEntity(World world)ThrowableEntity(World world, double double2, double double3, double double4)ThrowableEntity(World world, LivingEntity livingEntity) -
Method Summary
Modifier and Type Method Description voiddeserialize(CompoundTag tag)protected floatgetGravity()protected voidinitDataTracker()protected floatmethod_8069()protected floatmethod_8070()LivingEntitymethod_8072()protected abstract voidonCollision(HitResult result)voidserialize(CompoundTag tag)voidsetVelocity(double x, double y, double z, float speed, float divergence)voidsetVelocityClient(double x, double y, double z)booleanshouldRender(double distance)voidtick()Methods inherited from class net.minecraft.entity.Entity
addVelocity, afterSpawn, animateDamage, attemptSprintingParticles, baseTick, burn, canAvoidTraps, canClimb, canFly, canUseCommand, checkBlockCollision, collides, copyPortalInfo, copyPosition, damage, 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_6984, method_6985, method_6994, method_6998, method_7008, 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, 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 cLwy;c:Iintermediary field_8421Lnet/minecraft/class_1975;field_8421:Inamed blockXLnet/minecraft/entity/thrown/ThrowableEntity;blockX:I
-
blockY
private int blockY- Mappings:
Namespace Name Mixin selector official dLwy;d:Iintermediary field_8422Lnet/minecraft/class_1975;field_8422:Inamed blockYLnet/minecraft/entity/thrown/ThrowableEntity;blockY:I
-
blockZ
private int blockZ- Mappings:
Namespace Name Mixin selector official eLwy;e:Iintermediary field_8423Lnet/minecraft/class_1975;field_8423:Inamed blockZLnet/minecraft/entity/thrown/ThrowableEntity;blockZ:I
-
inBlock
- Mappings:
Namespace Name Mixin selector official fLwy;f:Lafh;intermediary field_8424Lnet/minecraft/class_1975;field_8424:Lnet/minecraft/class_160;named inBlockLnet/minecraft/entity/thrown/ThrowableEntity;inBlock:Lnet/minecraft/block/Block;
-
inGround
protected boolean inGround- Mappings:
Namespace Name Mixin selector official aLwy;a:Zintermediary field_8418Lnet/minecraft/class_1975;field_8418:Znamed inGroundLnet/minecraft/entity/thrown/ThrowableEntity;inGround:Z
-
shake
public int shake- Mappings:
Namespace Name Mixin selector official bLwy;b:Iintermediary field_8420Lnet/minecraft/class_1975;field_8420:Inamed shakeLnet/minecraft/entity/thrown/ThrowableEntity;shake:I
-
field_8425
- Mappings:
Namespace Name Mixin selector official gLwy;g:Lpr;intermediary field_8425Lnet/minecraft/class_1975;field_8425:Lnet/minecraft/class_1752;named field_8425Lnet/minecraft/entity/thrown/ThrowableEntity;field_8425:Lnet/minecraft/entity/LivingEntity;
-
field_8426
- Mappings:
Namespace Name Mixin selector official hLwy;h:Ljava/lang/String;intermediary field_8426Lnet/minecraft/class_1975;field_8426:Ljava/lang/String;named field_8426Lnet/minecraft/entity/thrown/ThrowableEntity;field_8426:Ljava/lang/String;
-
field_8427
private int field_8427- Mappings:
Namespace Name Mixin selector official iLwy;i:Iintermediary field_8427Lnet/minecraft/class_1975;field_8427:Inamed field_8427Lnet/minecraft/entity/thrown/ThrowableEntity;field_8427:I
-
field_8419
private int field_8419- Mappings:
Namespace Name Mixin selector official arLwy;ar:Iintermediary field_8419Lnet/minecraft/class_1975;field_8419:Inamed field_8419Lnet/minecraft/entity/thrown/ThrowableEntity;field_8419:I
-
-
Constructor Details
-
ThrowableEntity
- 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
-
ThrowableEntity
-
ThrowableEntity
-
-
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
-
method_8069
protected float method_8069()- Mappings:
Namespace Name Mixin selector official jLwy;j()Fintermediary method_8069Lnet/minecraft/class_1975;method_8069()Fnamed method_8069Lnet/minecraft/entity/thrown/ThrowableEntity;method_8069()F
-
method_8070
protected float method_8070()- Mappings:
Namespace Name Mixin selector official lLwy;l()Fintermediary method_8070Lnet/minecraft/class_1975;method_8070()Fnamed method_8070Lnet/minecraft/entity/thrown/ThrowableEntity;method_8070()F
-
setVelocity
public void setVelocity(double x, double y, double z, float speed, float divergence)- Specified by:
setVelocityin interfaceProjectile- Mappings:
Namespace Name Mixin selector official cLwv;c(DDDFF)Vintermediary method_8067Lnet/minecraft/class_1972;method_8067(DDDFF)Vnamed setVelocityLnet/minecraft/entity/projectile/Projectile;setVelocity(DDDFF)V
-
setVelocityClient
- Overrides:
setVelocityClientin classEntity- Mappings:
Namespace Name Mixin selector official iLpk;i(DDD)Vintermediary method_7048Lnet/minecraft/class_1745;method_7048(DDD)Vnamed setVelocityClientLnet/minecraft/entity/Entity;setVelocityClient(DDD)V
-
tick
public void tick() -
getGravity
protected float getGravity()- Mappings:
Namespace Name Mixin selector official mLwy;m()Fintermediary method_8071Lnet/minecraft/class_1975;method_8071()Fnamed getGravityLnet/minecraft/entity/thrown/ThrowableEntity;getGravity()F
-
onCollision
- Mappings:
Namespace Name Mixin selector official aLwy;a(Lauh;)Vintermediary method_8068Lnet/minecraft/class_1975;method_8068(Lnet/minecraft/class_647;)Vnamed onCollisionLnet/minecraft/entity/thrown/ThrowableEntity;onCollision(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
-
method_8072
- Mappings:
Namespace Name Mixin selector official nLwy;n()Lpr;intermediary method_8072Lnet/minecraft/class_1975;method_8072()Lnet/minecraft/class_1752;named method_8072Lnet/minecraft/entity/thrown/ThrowableEntity;method_8072()Lnet/minecraft/entity/LivingEntity;
-