Skip to content

Commit

Permalink
Entity related mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
Sychic committed Sep 21, 2024
1 parent 9cb9df6 commit 29df62c
Show file tree
Hide file tree
Showing 8 changed files with 72 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mappings/net/minecraft/block/Block.mapping
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ CLASS net/minecraft/class_2248 net/minecraft/block/Block
ARG 1 state
ARG 2 view
ARG 3 pos
METHOD method_9548 onEntityCollision (Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_0_378;Lnet/minecraft/class_1297;)V
METHOD method_9551 getRenderLayer ()Lnet/minecraft/class_1921;
METHOD method_9552 shouldPostProcess (Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)Z
ARG 1 state
Expand Down Expand Up @@ -565,12 +566,14 @@ CLASS net/minecraft/class_2248 net/minecraft/block/Block
METHOD method_9597 getMaterial ()Lnet/minecraft/class_3614;
METHOD method_9597 getMaterial (Lnet/minecraft/class_2680;)Lnet/minecraft/class_3614;
ARG 1 state
METHOD method_9600 shouldSuffocate ()Z
METHOD method_9601 isOpaque (Lnet/minecraft/class_2680;)Z
ARG 1 state
METHOD method_9602 getMapColor (Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)Lnet/minecraft/class_3620;
ARG 1 state
ARG 2 view
ARG 3 pos
METHOD method_9604 getRenderType ()I
METHOD method_9605 getPlacementState (Lnet/minecraft/class_1750;)Lnet/minecraft/class_2680;
ARG 1 ctx
METHOD method_9607 shouldDrawSide (Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)Z
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ CLASS net/minecraft/class_1900 net/minecraft/enchantment/ProtectionEnchantment
METHOD method_8237 transformExplosionKnockback (Lnet/minecraft/class_1309;D)D
ARG 0 entity
ARG 1 velocity
METHOD method_8238 transformFireDuration (Lnet/minecraft/class_1297;I)I
METHOD method_8238 transformFireDuration (Lnet/minecraft/class_1309;I)I
ARG 0 entity
ARG 1 duration
Expand Down
54 changes: 54 additions & 0 deletions mappings/net/minecraft/entity/Entity.mapping
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ CLASS net/minecraft/class_1297 net/minecraft/entity/Entity
COMMENT <h2 id="discarding">Discarding</h2>
COMMENT Entities can be discarded (despawned) by calling {@link #discard}. This does not drop loot.
COMMENT To kill entities and drop loot, call {@link #kill} or {@link damage} (with large enough damage amount).
FIELD field_0_7372 passenger Lnet/minecraft/class_1297;
FIELD field_0_7373 vehicle Lnet/minecraft/class_1297;
FIELD field_17046 movementMultiplier Lnet/minecraft/class_243;
FIELD field_18064 POSE Lnet/minecraft/class_2940;
Expand Down Expand Up @@ -181,6 +182,7 @@ CLASS net/minecraft/class_1297 net/minecraft/entity/Entity
FIELD field_5974 random Lnet/minecraft/class_5819;
FIELD field_5975 NAME_VISIBLE Lnet/minecraft/class_2940;
FIELD field_5976 horizontalCollision Z
FIELD field_5977 isFireImmune Z
FIELD field_5978 CURRENT_ID Ljava/util/concurrent/atomic/AtomicInteger;
COMMENT A generator of unique entity {@link #id network IDs}. The generated
COMMENT ID for client entities are useless and discarded subsequently through
Expand Down Expand Up @@ -209,6 +211,7 @@ CLASS net/minecraft/class_1297 net/minecraft/entity/Entity
FIELD field_5994 distanceTraveled F
FIELD field_5995 NO_GRAVITY Lnet/minecraft/class_2940;
FIELD field_5996 pistonMovementTick J
FIELD field_5998 width F
FIELD field_5999 renderDistanceMultiplier D
FIELD field_6000 submergedInWater Z
FIELD field_6001 trackedX J
Expand All @@ -235,6 +238,7 @@ CLASS net/minecraft/class_1297 net/minecraft/entity/Entity
FIELD field_6023 trackedY J
FIELD field_6024 chunkX I
FIELD field_6025 NULL_BOX Lnet/minecraft/class_238;
FIELD field_6026 dimensions I
FIELD field_6026 dimension Lnet/minecraft/class_2874;
FIELD field_6027 CUSTOM_NAME Lnet/minecraft/class_2940;
FIELD field_6028 lastNetherPortalDirection Lnet/minecraft/class_2350;
Expand All @@ -252,11 +256,27 @@ CLASS net/minecraft/class_1297 net/minecraft/entity/Entity
METHOD <init> (Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)V
ARG 1 type
ARG 2 world
METHOD <init> (Lnet/minecraft/class_1937;)V
ARG 1 world
METHOD equals (Ljava/lang/Object;)Z
ARG 1 o
METHOD method_0_6892 checkWaterState ()Z
METHOD method_0_6922 interactAt (Lnet/minecraft/class_1657;Lnet/minecraft/class_243;)Z
METHOD method_0_6939 getCustomName ()Ljava/lang/String;
METHOD method_0_6968 getArmorItems ()[Lnet/minecraft/class_1799;
METHOD method_0_6974 isSwimming ()Z
COMMENT {@return whether the entity is swimming}
COMMENT
COMMENT <p>An entity is swimming if it is touching water, not riding any entities, and is
COMMENT sprinting. Note that to start swimming, the entity must first be submerged in
COMMENT water.
COMMENT
COMMENT @see #setSwimming
METHOD method_0_7016 setSwimming (Z)V
COMMENT Sets whether the entity is swimming.
COMMENT
COMMENT @see #isSwimming
ARG 1 swimming
METHOD method_17681 getWidth ()F
COMMENT {@return the width of the entity's current dimension}
METHOD method_17682 getHeight ()F
Expand Down Expand Up @@ -1062,6 +1082,7 @@ CLASS net/minecraft/class_1297 net/minecraft/entity/Entity
COMMENT
COMMENT @see #getRootVehicle
COMMENT @see #getVehicle
METHOD method_5478 hasCustomName ()Z
METHOD method_5621 getMountedHeightOffset ()D
METHOD method_5622 onBlockCollision (Lnet/minecraft/class_2680;)V
COMMENT Called when this entity's collision box intersects {@code state}.
Expand All @@ -1071,6 +1092,7 @@ CLASS net/minecraft/class_1297 net/minecraft/entity/Entity
METHOD method_5623 fall (DZLnet/minecraft/class_2248;Lnet/minecraft/class_2338;)V
ARG 1 heightDifference
ARG 3 onGround
ARG 4 block
ARG 5 landedPosition
METHOD method_5623 fall (DZLnet/minecraft/class_2680;Lnet/minecraft/class_2338;)V
COMMENT Called when the entity falls. Flying mobs should override this to do nothing.
Expand All @@ -1089,6 +1111,7 @@ CLASS net/minecraft/class_1297 net/minecraft/entity/Entity
COMMENT <p>Swimming is also considered as sprinting.
COMMENT
COMMENT #setSprinting
METHOD method_5625 getSplashSound ()Ljava/lang/String;
METHOD method_5625 getSplashSound ()Lnet/minecraft/class_3414;
METHOD method_5626 hasPassenger (Lnet/minecraft/class_1297;)Z
COMMENT {@return whether {@code passenger} is a passenger of this entity}
Expand Down Expand Up @@ -1219,6 +1242,8 @@ CLASS net/minecraft/class_1297 net/minecraft/entity/Entity
COMMENT and splash water bottles in vanilla.
METHOD method_5647 writeNbt (Lnet/minecraft/class_2487;)Lnet/minecraft/class_2487;
ARG 1 nbt
METHOD method_5647 writeNbt (Lnet/minecraft/class_2487;)V
ARG 1 nbt
METHOD method_5648 setInvisible (Z)V
COMMENT Sets whether the entity is invisible to everyone.
COMMENT
Expand Down Expand Up @@ -1310,11 +1335,14 @@ CLASS net/minecraft/class_1297 net/minecraft/entity/Entity
ARG 2 hitPos
COMMENT the interaction's position offset from the entity's position
ARG 3 hand
METHOD method_5665 setCustomName (Ljava/lang/String;)V
ARG 1 name
METHOD method_5665 setCustomName (Lnet/minecraft/class_2561;)V
COMMENT Sets the custom name of the entity to {@code name} (or {@code null} to
COMMENT remove the custom name).
ARG 1 name
METHOD method_5666 attemptSprintingParticles ()V
METHOD method_5667 getUuid ()Ljava/util/UUID;
METHOD method_5668 getRootVehicle ()Lnet/minecraft/class_1297;
COMMENT {@return the lowest entity this entity is riding}
COMMENT
Expand Down Expand Up @@ -1421,6 +1449,11 @@ CLASS net/minecraft/class_1297 net/minecraft/entity/Entity
COMMENT
COMMENT @see #getPermissionLevel
ARG 1 permissionLevel
METHOD method_5688 interact (Lnet/minecraft/class_1657;)Z
COMMENT Called when a player interacts with this entity.
COMMENT
COMMENT @param player the player
ARG 1 player
METHOD method_5688 interact (Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;
COMMENT Called when a player interacts with this entity.
ARG 1 player
Expand Down Expand Up @@ -1645,6 +1678,7 @@ CLASS net/minecraft/class_1297 net/minecraft/entity/Entity
COMMENT Sets the entity on fire from lava, applies lava damage, and plays the burning sound.
COMMENT
COMMENT @implNote Fire from lava lasts 15 seconds by default.
METHOD method_5731 moveToWorld (I)V
METHOD method_5731 changeDimension (Lnet/minecraft/class_2874;)Lnet/minecraft/class_1297;
ARG 1 newDimension
METHOD method_5731 moveToWorld (Lnet/minecraft/class_3218;)Lnet/minecraft/class_1297;
Expand Down Expand Up @@ -1685,6 +1719,7 @@ CLASS net/minecraft/class_1297 net/minecraft/entity/Entity
COMMENT @see #streamSelfAndPassengers
COMMENT @see #streamPassengersAndSelf
METHOD method_5736 getPassengersDeep ()Ljava/util/Collection;
METHOD method_5737 getSwimSound ()Ljava/lang/String;
METHOD method_5737 getSwimSound ()Lnet/minecraft/class_3414;
METHOD method_5738 removeScoreboardTag (Ljava/lang/String;)Z
COMMENT Removes a command tag from this entity.
Expand Down Expand Up @@ -1890,6 +1925,11 @@ CLASS net/minecraft/class_1297 net/minecraft/entity/Entity
ARG 4 blockState
ARG 5 fluidState
ARG 6 max
METHOD method_5774 (Lnet/minecraft/class_1927;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_0_378;)F
ARG 1 explosion
ARG 2 world
ARG 3 pos
ARG 4 blockState
METHOD method_5775 dropStack (Lnet/minecraft/class_1799;)Lnet/minecraft/class_1542;
COMMENT Drops {@code stack} at the entity's position.
COMMENT
Expand Down Expand Up @@ -1941,12 +1981,19 @@ CLASS net/minecraft/class_1297 net/minecraft/entity/Entity
COMMENT @see #stopRiding
COMMENT @see #hasVehicle
METHOD method_5783 playSound (Ljava/lang/String;FF)V
ARG 1 sound
ARG 2 volume
ARG 3 pitch
METHOD method_5783 playSound (Lnet/minecraft/class_3414;FF)V
COMMENT Plays {@code sound} at this entity's position with the entity's {@linkplain
COMMENT #getSoundCategory sound category} if the entity is {@linkplain #isSilent not silent}.
ARG 1 sound
ARG 2 volume
ARG 3 pitch
METHOD method_5784 move (DDD)V
ARG 1 x
ARG 3 y
ARG 5 z
METHOD method_5784 move (Lnet/minecraft/class_1313;Lnet/minecraft/class_243;)V
ARG 1 movementType
ARG 2 movement
Expand Down Expand Up @@ -2285,6 +2332,12 @@ CLASS net/minecraft/class_1297 net/minecraft/entity/Entity
ARG 3 pos
ARG 4 state
ARG 5 explosionPower
METHOD method_5853 canExplosionDestroyBlock (Lnet/minecraft/class_1927;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_0_378;F)Z
ARG 1 explosion
ARG 2 world
ARG 3 pos
ARG 4 blockState
ARG 5 explosionPower
METHOD method_5854 getVehicle ()Lnet/minecraft/class_1297;
COMMENT {@return the entity this entity rides, or {@code null} if there is none}
COMMENT
Expand Down Expand Up @@ -2372,6 +2425,7 @@ CLASS net/minecraft/class_1297 net/minecraft/entity/Entity
ARG 2 output
METHOD method_5869 isSubmergedInWater ()Z
COMMENT {@return whether this entity's hitbox is fully submerged in water}
METHOD method_5870 dropItem (Lnet/minecraft/class_1792;IF)Lnet/minecraft/class_1542;
METHOD method_5870 dropItem (Lnet/minecraft/class_1935;I)Lnet/minecraft/class_1542;
COMMENT Drops one {@code item} at the entity's position with the given Y offset.
COMMENT
Expand Down
1 change: 1 addition & 0 deletions mappings/net/minecraft/entity/EntityType.mapping
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ CLASS net/minecraft/class_1299 net/minecraft/entity/EntityType
METHOD method_5889 createInstanceFromId (ILnet/minecraft/class_1937;)Lnet/minecraft/class_1297;
ARG 0 type
ARG 1 world
METHOD method_5890 getId (Lnet/minecraft/class_1297;)Ljava/lang/String;
METHOD method_5890 getId (Lnet/minecraft/class_1299;)Lnet/minecraft/class_2960;
ARG 0 type
METHOD method_5891 getSpawnGroup ()Lnet/minecraft/class_1311;
Expand Down
2 changes: 2 additions & 0 deletions mappings/net/minecraft/entity/data/DataTracker.mapping
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ CLASS net/minecraft/class_2945 net/minecraft/entity/data/DataTracker
METHOD <init> (Lnet/minecraft/class_1297;)V
ARG 1 trackedEntity
METHOD method_0_7231 getByte (I)B
METHOD method_0_7239 getShort (I)S
METHOD method_0_7240 set (ILjava/lang/Object;)V
METHOD method_0_7245 getFloat (I)F
METHOD method_0_7247 getString (I)Ljava/lang/String;
METHOD method_12776 addTrackedData (Lnet/minecraft/class_2940;Ljava/lang/Object;)V
ARG 1 key
ARG 2 value
Expand Down
1 change: 1 addition & 0 deletions mappings/net/minecraft/entity/player/PlayerEntity.mapping
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ CLASS net/minecraft/class_1657 net/minecraft/entity/player/PlayerEntity
ARG 1 commandBlock
METHOD method_7324 attack (Lnet/minecraft/class_1297;)V
ARG 1 target
METHOD method_7325 isSpectator ()Z
METHOD method_7326 doesNotSuffocate (Lnet/minecraft/class_2338;)Z
ARG 1 pos
METHOD method_7327 getScoreboard ()Lnet/minecraft/class_269;
Expand Down
5 changes: 5 additions & 0 deletions mappings/net/minecraft/server/command/CommandOutput.mapping
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
CLASS net/minecraft/class_2165 net/minecraft/server/command/CommandOutput
COMMENT Represents a subject which can receive command feedback.
FIELD field_17395 DUMMY Lnet/minecraft/class_2165;
METHOD method_0_6351 getWorld ()Lnet/minecraft/class_1937;
METHOD method_36320 cannotBeSilenced ()Z
METHOD method_43496 sendMessage (Lnet/minecraft/class_2561;)V
COMMENT Sends a system message.
COMMENT
COMMENT @implNote The output location depends on the implementation; players will
COMMENT use the in-game chat, and others will output to the log.
ARG 1 message
METHOD method_5477 getName ()Ljava/lang/String;
METHOD method_5704 getBlockPos ()Lnet/minecraft/class_2338;
METHOD method_5797 getDisplayName ()Lnet/minecraft/class_2561;
METHOD method_5812 getPos ()Lnet/minecraft/class_243;
METHOD method_9200 shouldReceiveFeedback ()Z
METHOD method_9201 shouldBroadcastConsoleToOps ()Z
METHOD method_9202 shouldTrackOutput ()Z
Expand Down
5 changes: 5 additions & 0 deletions mappings/net/minecraft/world/World.mapping
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,13 @@ CLASS net/minecraft/class_1937 net/minecraft/world/World
ARG 7 debugWorld
ARG 8 biomeAccess
ARG 10 maxChainedNeighborUpdates
METHOD method_0_312 isRegionLoaded (Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;)Z
METHOD method_0_316 addParticle (Lnet/minecraft/class_2396;DDDDDD[I)V
METHOD method_0_334 isSpaceEmpty (Lnet/minecraft/class_1297;Lnet/minecraft/class_238;)Ljava/util/List;
METHOD method_0_336 playSound (Lnet/minecraft/class_1297;Ljava/lang/String;FF)V
METHOD method_0_377 getSkyAngle (F)F
ARG 1 tickDelta
METHOD method_0_392 containsFluid (Lnet/minecraft/class_238;)Z
METHOD method_0_436 getMoonPhase ()I
METHOD method_16107 getProfiler ()Lnet/minecraft/class_3695;
METHOD method_16109 scheduleBlockRerenderIfNeeded (Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2680;)V
Expand Down Expand Up @@ -671,4 +675,5 @@ CLASS net/minecraft/class_1937 net/minecraft/world/World
ARG 0 pos
METHOD method_8560 tickTime ()V
METHOD method_8621 getWorldBorder ()Lnet/minecraft/class_2784;
METHOD method_8649 spawnEntity (Lnet/minecraft/class_1297;)Z
CLASS class_7867 ExplosionSourceType

0 comments on commit 29df62c

Please sign in to comment.