Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Javadocs for Entity, LivingEntity, and Player #304

Open
wants to merge 1 commit into
base: versions/1.21.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions data/net/minecraft/world/entity/Entity.mapping
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,12 @@ CLASS net/minecraft/world/entity/Entity
ARG 1 partialTick
METHOD getX (D)D
ARG 1 scale
METHOD getXRot ()F
COMMENT Gets the rotation of this entity around the x-axis (the pitch) in degrees.
METHOD getY (D)D
ARG 1 scale
METHOD getYRot ()F
COMMENT Gets the rotation of this entity around the y-axis (the yaw) in degrees.
METHOD getZ (D)D
ARG 1 scale
METHOD handleDamageEvent (Lnet/minecraft/world/damagesource/DamageSource;)V
Expand Down Expand Up @@ -627,6 +631,7 @@ CLASS net/minecraft/world/entity/Entity
METHOD setViewScale (D)V
ARG 0 renderDistWeight
METHOD setXRot (F)V
COMMENT Gets the rotation of this entity around the x-axis (the pitch) in degrees.
ARG 1 xRot
METHOD setYBodyRot (F)V
COMMENT Set the body Y rotation of the entity.
Expand All @@ -635,6 +640,7 @@ CLASS net/minecraft/world/entity/Entity
COMMENT Sets the head's Y rotation of the entity.
ARG 1 yHeadRot
METHOD setYRot (F)V
COMMENT Sets the rotation of this entity around the y-axis (the yaw) in degrees.
ARG 1 yRot
METHOD shouldBlockExplode (Lnet/minecraft/world/level/Explosion;Lnet/minecraft/world/level/BlockGetter;Lnet/minecraft/core/BlockPos;Lnet/minecraft/world/level/block/state/BlockState;F)Z
ARG 1 explosion
Expand Down
1 change: 1 addition & 0 deletions data/net/minecraft/world/entity/LivingEntity.mapping
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ CLASS net/minecraft/world/entity/LivingEntity
METHOD getMaxHealth ()F
COMMENT Returns the maximum health of the entity (what it is able to regenerate up to, what it spawned with, etc.)
METHOD getProjectile (Lnet/minecraft/world/item/ItemStack;)Lnet/minecraft/world/item/ItemStack;
COMMENT Gets an item stack available to this entity to be loaded into the provided weapon, or an empty item stack if no such item stack is available.
ARG 1 weaponStack
METHOD getRiddenInput (Lnet/minecraft/world/entity/player/Player;Lnet/minecraft/world/phys/Vec3;)Lnet/minecraft/world/phys/Vec3;
ARG 1 player
Expand Down
2 changes: 2 additions & 0 deletions data/net/minecraft/world/entity/player/Player.mapping
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ CLASS net/minecraft/world/entity/player/Player
METHOD lambda$readAdditionalSaveData$2 (Lnet/minecraft/world/phys/Vec3;)V
ARG 1 currentImpulseImpactPos
METHOD magicCrit (Lnet/minecraft/world/entity/Entity;)V
COMMENT Called when the entity hit is dealt extra melee damage due to an enchantment.
ARG 1 entityHit
METHOD makeStuckInBlock (Lnet/minecraft/world/level/block/state/BlockState;Lnet/minecraft/world/phys/Vec3;)V
ARG 1 state
Expand Down Expand Up @@ -267,6 +268,7 @@ CLASS net/minecraft/world/entity/player/Player
METHOD setShoulderEntityRight (Lnet/minecraft/nbt/CompoundTag;)V
ARG 1 entityCompound
METHOD startAutoSpinAttack (IFLnet/minecraft/world/item/ItemStack;)V
COMMENT Starts the attack used by the Riptide enchantment.
ARG 1 ticks
ARG 2 damage
ARG 3 itemStack
Expand Down