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
- Mappings:
Namespace Name official ahrintermediary net/minecraft/class_996named net/minecraft/entity/thrown/ThrowableEntity
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate intprivate intprivate intprivate LivingEntityprivate Blockprotected booleanprivate intprivate StringintFields inherited from class net.minecraft.entity.Entity
changingDimension, chunkX, chunkY, chunkZ, colliding, dataTracker, dimension, distanceTraveled, fallDistance, field_22434, field_3223, fireResistance, firstUpdate, height, horizontalCollision, horizontalSpeed, ignoreCameraFrustum, inanimate, inLava, isFireImmune, netherPortalCooldown, netherPortalTime, noClip, onGround, pitch, playerUuid, prevHorizontalSpeed, prevPitch, prevTickX, prevTickY, prevTickZ, prevX, prevY, prevYaw, prevZ, pushSpeedReduction, random, removed, renderDistanceMultiplier, rider, stepHeight, teleporting, ticksAlive, touchingWater, trackedX, trackedY, trackedZ, updateNeeded, vehicle, velocityDirty, velocityModified, velocityX, velocityY, velocityZ, verticalCollision, width, world, x, y, yaw, z -
Constructor Summary
ConstructorsConstructorDescriptionThrowableEntity(World world) ThrowableEntity(World world, double x, double y, double z) ThrowableEntity(World world, LivingEntity owner) -
Method Summary
Modifier and TypeMethodDescriptionprotected floatgetOwner()protected voidprotected floatprotected floatprotected abstract voidonCollision(BlockHitResult result) voidvoidsetVelocity(double x, double y, double z, float speed, float divergence) voidsetVelocityClient(double x, double y, double z) booleanshouldRender(double distance) voidtick()voidMethods inherited from class net.minecraft.entity.Entity
addVelocity, afterSpawn, animateDamage, attemptSprintingParticles, baseTick, burn, canAvoidTraps, canClimb, canExplosionDestroyBlock, canFly, canUseCommand, checkBlockCollision, collides, copyPortalInfo, copyPosition, damage, dealDamage, destroy, distanceTo, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropItem, equals, equip, extinguish, fall, fromClientNbt, fromNbt, getAir, getArmorStacks, getBlastResistance, getBlockPos, getBoundingBox, getBox, getBrightnessAtEyes, getCameraPosVec, getCommandStats, getCustomName, getDataTracker, getDefaultNetherPortalCooldown, getEntity, getEntityId, getEyeHeight, getFlag, getHardCollisionBox, getHeadRotation, getHeightOffset, getHorizontalDirection, getHoverEvent, getLightmapCoordinates, getMaxNetherPortalTime, getMountedHeightOffset, getParts, getPos, getRotation, getRotationVector, getRotationVector, getSafeFallDistance, getSavedEntityId, getSplashSound, getSwimSound, getTargetingMargin, 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, isSwimming, isTouchingLava, isTouchingWater, kill, method_10786, method_10941, method_10948, method_10957, method_10965, method_6097, method_6344, method_8364, move, onKilledOther, onLightningStrike, onPlayerCollision, onSwimmingStart, openInventory, playSound, playStepSound, populateCrashReport, pushAwayFrom, pushOutOfBlocks, rayTrace, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, remove, saveSelfToNbt, saveToNbt, scheduleVelocityUpdate, sendCommandFeedback, sendMessage, setAir, setArmorSlot, setBoundingBox, setBounds, setCustomName, setCustomNameVisible, setEntityId, setFlag, setHeadYaw, setInLava, setInvisible, setOnFireFor, setOnFireFromLava, setOutsideWorldborder, setRotation, setSilent, setSneaking, setSprinting, setSwimming, setWorld, shouldRender, shouldRenderName, shouldSetPositionOnLoad, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, squaredDistanceToCenter, startRiding, teleportToDimension, tickFire, tickRiding, toListNbt, toListNbt, toString, updateKilledAdvancementCriterion, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateTrackedPositionAndAngles, updateVelocity, updateWaterState, writePlayerData
-
Field Details
-
blockX
private int blockX- Mappings:
Namespace Name Mixin selector official cLahr;c:Iintermediary field_4074Lnet/minecraft/class_996;field_4074:Inamed blockXLnet/minecraft/entity/thrown/ThrowableEntity;blockX:I
-
blockY
private int blockY- Mappings:
Namespace Name Mixin selector official dLahr;d:Iintermediary field_4075Lnet/minecraft/class_996;field_4075:Inamed blockYLnet/minecraft/entity/thrown/ThrowableEntity;blockY:I
-
blockZ
private int blockZ- Mappings:
Namespace Name Mixin selector official eLahr;e:Iintermediary field_4076Lnet/minecraft/class_996;field_4076:Inamed blockZLnet/minecraft/entity/thrown/ThrowableEntity;blockZ:I
-
inBlock
- Mappings:
Namespace Name Mixin selector official fLahr;f:Latr;intermediary field_9143Lnet/minecraft/class_996;field_9143:Lnet/minecraft/class_197;named inBlockLnet/minecraft/entity/thrown/ThrowableEntity;inBlock:Lnet/minecraft/block/Block;
-
inGround
protected boolean inGround- Mappings:
Namespace Name Mixin selector official aLahr;a:Zintermediary field_4071Lnet/minecraft/class_996;field_4071:Znamed inGroundLnet/minecraft/entity/thrown/ThrowableEntity;inGround:Z
-
shake
public int shake- Mappings:
Namespace Name Mixin selector official bLahr;b:Iintermediary field_4072Lnet/minecraft/class_996;field_4072:Inamed shakeLnet/minecraft/entity/thrown/ThrowableEntity;shake:I
-
field_6932
- Mappings:
Namespace Name Mixin selector official gLahr;g:Lxm;intermediary field_6932Lnet/minecraft/class_996;field_6932:Lnet/minecraft/class_1699;named field_6932Lnet/minecraft/entity/thrown/ThrowableEntity;field_6932:Lnet/minecraft/entity/LivingEntity;
-
ownerName
- Mappings:
Namespace Name Mixin selector official hLahr;h:Ljava/lang/String;intermediary field_5404Lnet/minecraft/class_996;field_5404:Ljava/lang/String;named ownerNameLnet/minecraft/entity/thrown/ThrowableEntity;ownerName:Ljava/lang/String;
-
inGroundTime
private int inGroundTime- Mappings:
Namespace Name Mixin selector official iLahr;i:Iintermediary field_4078Lnet/minecraft/class_996;field_4078:Inamed inGroundTimeLnet/minecraft/entity/thrown/ThrowableEntity;inGroundTime:I
-
field_4079
private int field_4079- Mappings:
Namespace Name Mixin selector official apLahr;ap:Iintermediary field_4079Lnet/minecraft/class_996;field_4079:Inamed field_4079Lnet/minecraft/entity/thrown/ThrowableEntity;field_4079:I
-
-
Constructor Details
-
ThrowableEntity
- Mappings:
Namespace Name Mixin selector official <init>Lwv;<init>(Laqu;)Vintermediary <init>Lnet/minecraft/class_864;<init>(Lnet/minecraft/class_1150;)Vnamed <init>Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/world/World;)V
-
ThrowableEntity
- Mappings:
Namespace Name Mixin selector official <init>Lahr;<init>(Laqu;Lxm;)Vintermediary <init>Lnet/minecraft/class_996;<init>(Lnet/minecraft/class_1150;Lnet/minecraft/class_1699;)Vnamed <init>Lnet/minecraft/entity/thrown/ThrowableEntity;<init>(Lnet/minecraft/world/World;Lnet/minecraft/entity/LivingEntity;)V
-
ThrowableEntity
- Mappings:
Namespace Name Mixin selector official <init>Lahr;<init>(Laqu;DDD)Vintermediary <init>Lnet/minecraft/class_996;<init>(Lnet/minecraft/class_1150;DDD)Vnamed <init>Lnet/minecraft/entity/thrown/ThrowableEntity;<init>(Lnet/minecraft/world/World;DDD)V
-
-
Method Details
-
initDataTracker
protected void initDataTracker()- Specified by:
initDataTrackerin classEntity- Mappings:
Namespace Name Mixin selector official hLwv;h()Vintermediary method_2484Lnet/minecraft/class_864;method_2484()Vnamed initDataTrackerLnet/minecraft/entity/Entity;initDataTracker()V
-
shouldRender
- Overrides:
shouldRenderin classEntity- Mappings:
Namespace Name Mixin selector official aLwv;a(D)Zintermediary method_2486Lnet/minecraft/class_864;method_2486(D)Znamed shouldRenderLnet/minecraft/entity/Entity;shouldRender(D)Z
-
method_3234
protected float method_3234()- Mappings:
Namespace Name Mixin selector official jLahr;j()Fintermediary method_3234Lnet/minecraft/class_996;method_3234()Fnamed method_3234Lnet/minecraft/entity/thrown/ThrowableEntity;method_3234()F
-
method_3235
protected float method_3235()- Mappings:
Namespace Name Mixin selector official lLahr;l()Fintermediary method_3235Lnet/minecraft/class_996;method_3235()Fnamed method_3235Lnet/minecraft/entity/thrown/ThrowableEntity;method_3235()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 cLaho;c(DDDFF)Vintermediary method_3233Lnet/minecraft/class_1417;method_3233(DDDFF)Vnamed setVelocityLnet/minecraft/entity/projectile/Projectile;setVelocity(DDDFF)V
-
setVelocityClient
- Overrides:
setVelocityClientin classEntity- Mappings:
Namespace Name Mixin selector official iLwv;i(DDD)Vintermediary method_2556Lnet/minecraft/class_864;method_2556(DDD)Vnamed setVelocityClientLnet/minecraft/entity/Entity;setVelocityClient(DDD)V
-
tick
public void tick() -
getGravity
protected float getGravity()- Mappings:
Namespace Name Mixin selector official mLahr;m()Fintermediary method_3236Lnet/minecraft/class_996;method_3236()Fnamed getGravityLnet/minecraft/entity/thrown/ThrowableEntity;getGravity()F
-
onCollision
- Mappings:
Namespace Name Mixin selector official aLahr;a(Lbru;)Vintermediary method_3232Lnet/minecraft/class_996;method_3232(Lnet/minecraft/class_234;)Vnamed onCollisionLnet/minecraft/entity/thrown/ThrowableEntity;onCollision(Lnet/minecraft/util/hit/BlockHitResult;)V
-
writeCustomDataToNbt
- Specified by:
writeCustomDataToNbtin classEntity- Mappings:
Namespace Name Mixin selector official bLwv;b(Lfn;)Vintermediary method_2528Lnet/minecraft/class_864;method_2528(Lnet/minecraft/class_322;)Vnamed writeCustomDataToNbtLnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
readCustomDataFromNbt
- Specified by:
readCustomDataFromNbtin classEntity- Mappings:
Namespace Name Mixin selector official aLwv;a(Lfn;)Vintermediary method_2498Lnet/minecraft/class_864;method_2498(Lnet/minecraft/class_322;)Vnamed readCustomDataFromNbtLnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
getOwner
- Mappings:
Namespace Name Mixin selector official nLahr;n()Lxm;intermediary method_4585Lnet/minecraft/class_996;method_4585()Lnet/minecraft/class_1699;named getOwnerLnet/minecraft/entity/thrown/ThrowableEntity;getOwner()Lnet/minecraft/entity/LivingEntity;
-