Skip to content

Commit

Permalink
Some EntryListWidget and entity methods and javadocs (FabricMC#1812)
Browse files Browse the repository at this point in the history
* Some EntryListWidget and entity methods and javadocs

* Update mappings/net/minecraft/entity/mob/PiglinEntity.mapping

Co-authored-by: enbrain <[email protected]>

* Update mappings/net/minecraft/client/gui/widget/EntryListWidget.mapping

Co-authored-by: Gegy <[email protected]>

Co-authored-by: enbrain <[email protected]>
Co-authored-by: Gegy <[email protected]>
  • Loading branch information
3 people authored Nov 7, 2020
1 parent 02e09de commit 34b70ef
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 3 deletions.
10 changes: 10 additions & 0 deletions mappings/net/minecraft/client/gui/widget/EntryListWidget.mapping
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,25 @@ CLASS net/minecraft/class_350 net/minecraft/client/gui/widget/EntryListWidget
CLASS class_351 Entry
FIELD field_22752 list Lnet/minecraft/class_350;
METHOD method_25343 render (Lnet/minecraft/class_4587;IIIIIIIZF)V
COMMENT Renders an entry in a list.
ARG 1 matrices
COMMENT the matrix stack used for rendering
ARG 2 index
COMMENT the index of the entry
ARG 3 y
COMMENT the Y coordinate of the entry
ARG 4 x
COMMENT the X coordinate of the entry
ARG 5 entryWidth
COMMENT the width of the entry
ARG 6 entryHeight
COMMENT the height of the entry
ARG 7 mouseX
COMMENT the X coordinate of the mouse
ARG 8 mouseY
COMMENT the Y coordinate of the mouse
ARG 9 hovered
COMMENT whether the mouse is hovering over the entry
ARG 10 tickDelta
CLASS class_352 Entries
FIELD field_2146 entries Ljava/util/List;
Expand Down
4 changes: 4 additions & 0 deletions mappings/net/minecraft/entity/LivingEntity.mapping
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,10 @@ CLASS net/minecraft/class_1309 net/minecraft/entity/LivingEntity
METHOD method_27302 shouldDisplaySoulSpeedEffects ()Z
METHOD method_27303 isOnSoulSpeedBlock ()Z
METHOD method_28306 createBrainProfile ()Lnet/minecraft/class_4095$class_5303;
METHOD method_29499 triggerItemPickedUpByEntityCriteria (Lnet/minecraft/class_1542;)V
COMMENT Called to trigger advancement criteria when an entity picks up an item
COMMENT thrown by a player.
ARG 1 item
METHOD method_29501 removeSoulSpeedBoost ()V
METHOD method_29502 addSoulSpeedBoostIfNeeded ()V
METHOD method_29503 hurtByWater ()Z
Expand Down
4 changes: 2 additions & 2 deletions mappings/net/minecraft/entity/mob/PiglinBrain.mapping
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,11 @@ CLASS net/minecraft/class_4838 net/minecraft/entity/mob/PiglinBrain
ARG 1 player
METHOD method_29947 getNearestDetectedPlayer (Lnet/minecraft/class_5418;)Ljava/util/Optional;
ARG 0 piglin
METHOD method_30087 getSoundEvent (Lnet/minecraft/class_4836;Lnet/minecraft/class_4168;)Lnet/minecraft/class_3414;
METHOD method_30087 getSound (Lnet/minecraft/class_4836;Lnet/minecraft/class_4168;)Lnet/minecraft/class_3414;
ARG 0 piglin
ARG 1 activity
METHOD method_30089 swapItemWithOffHand (Lnet/minecraft/class_4836;Lnet/minecraft/class_1799;)V
ARG 0 piglin
ARG 1 stack
METHOD method_30091 getOptionalSoundEvent (Lnet/minecraft/class_4836;)Ljava/util/Optional;
METHOD method_30091 getCurrentActivitySound (Lnet/minecraft/class_4836;)Ljava/util/Optional;
ARG 0 piglin
11 changes: 10 additions & 1 deletion mappings/net/minecraft/entity/mob/PiglinEntity.mapping
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,17 @@ CLASS net/minecraft/class_4836 net/minecraft/entity/mob/PiglinEntity
ARG 1 stack
METHOD method_24845 equipToOffHand (Lnet/minecraft/class_1799;)V
ARG 1 stack
METHOD method_24846 (Lnet/minecraft/class_1799;)Z
METHOD method_24846 canEquipStack (Lnet/minecraft/class_1799;)Z
COMMENT Returns whether this piglin can equip into or replace current equipment slot.
ARG 1 stack
METHOD method_26089 getTopMostPassenger (Lnet/minecraft/class_1297;I)Lnet/minecraft/class_1297;
COMMENT Returns the passenger entity at {@code maxLevel} in a stacked riding (riding on
COMMENT an entity that is riding on another entity, etc).
COMMENT
COMMENT <p>If the number of stacked entities is less than {@code maxLevel}, returns the
COMMENT top most passenger entity.
ARG 1 entity
ARG 2 maxLevel
METHOD method_26953 createPiglinAttributes ()Lnet/minecraft/class_5132$class_5133;
METHOD method_26954 setCannotHunt (Z)V
ARG 1 cannotHunt
Expand Down
3 changes: 3 additions & 0 deletions mappings/net/minecraft/entity/player/PlayerEntity.mapping
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ CLASS net/minecraft/class_1657 net/minecraft/entity/player/PlayerEntity
ARG 1 entityTag
METHOD method_7274 getEnderChestInventory ()Lnet/minecraft/class_1730;
METHOD method_7276 isSleepingLongEnough ()Z
COMMENT Returns whether this player has been sleeping long enough to count towards
COMMENT resetting the time of day and weather of the server.
METHOD method_7277 addCritParticles (Lnet/minecraft/class_1297;)V
ARG 1 target
METHOD method_7278 getEnchantmentTableSeed ()I
Expand Down Expand Up @@ -200,6 +202,7 @@ CLASS net/minecraft/class_1657 net/minecraft/entity/player/PlayerEntity
METHOD method_7336 setGameMode (Lnet/minecraft/class_1934;)V
ARG 1 gameMode
METHOD method_7337 isCreative ()Z
COMMENT Returns whether this player is in creative mode.
METHOD method_7338 isCreativeLevelTwoOp ()Z
METHOD method_7339 increaseStat (Lnet/minecraft/class_2960;I)V
ARG 1 stat
Expand Down

0 comments on commit 34b70ef

Please sign in to comment.