Add game mode mappings (#1742)

This commit is contained in:
enbrain 2020-09-12 02:43:03 +09:00 committed by GitHub
parent 83826a2a20
commit b83a107543
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 0 deletions

View File

@ -105,3 +105,4 @@ CLASS net/minecraft/class_636 net/minecraft/client/network/ClientPlayerInteracti
ARG 1 world
ARG 2 statHandler
ARG 3 recipeBook
METHOD method_30108 setPreviousGameMode (Lnet/minecraft/class_1934;)V

View File

@ -5,9 +5,14 @@ CLASS net/minecraft/class_2724 net/minecraft/network/packet/s2c/play/PlayerRespa
FIELD field_24451 keepPlayerAttributes Z
FIELD field_24620 debugWorld Z
FIELD field_24621 flatWorld Z
FIELD field_25714 previousGameMode Lnet/minecraft/class_1934;
METHOD <init> (Lnet/minecraft/class_2874;Lnet/minecraft/class_5321;JLnet/minecraft/class_1934;Lnet/minecraft/class_1934;ZZZ)V
ARG 5 gameMode
ARG 6 previousGameMode
METHOD method_11779 getDimension ()Lnet/minecraft/class_5321;
METHOD method_11780 getGameMode ()Lnet/minecraft/class_1934;
METHOD method_22425 getSha256Seed ()J
METHOD method_27904 shouldKeepPlayerAttributes ()Z
METHOD method_28120 isDebugWorld ()Z
METHOD method_28121 isFlatWorld ()Z
METHOD method_30117 getPreviousGameMode ()Lnet/minecraft/class_1934;

View File

@ -11,6 +11,7 @@ CLASS net/minecraft/class_3225 net/minecraft/server/network/ServerPlayerInteract
FIELD field_20329 failedMiningPos Lnet/minecraft/class_2338;
FIELD field_20330 failedStartMiningTime I
FIELD field_20331 blockBreakingProgress I
FIELD field_25715 previousGameMode Lnet/minecraft/class_1934;
METHOD <init> (Lnet/minecraft/class_3218;)V
ARG 1 world
METHOD method_14256 interactItem (Lnet/minecraft/class_3222;Lnet/minecraft/class_1937;Lnet/minecraft/class_1799;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;
@ -22,7 +23,10 @@ CLASS net/minecraft/class_3225 net/minecraft/server/network/ServerPlayerInteract
METHOD method_14259 setWorld (Lnet/minecraft/class_3218;)V
ARG 1 world
METHOD method_14260 setGameModeIfNotPresent (Lnet/minecraft/class_1934;)V
ARG 1 gameMode
METHOD method_14261 setGameMode (Lnet/minecraft/class_1934;Lnet/minecraft/class_1934;)V
ARG 1 gameMode
ARG 2 previousGameMode
METHOD method_14262 interactBlock (Lnet/minecraft/class_3222;Lnet/minecraft/class_1937;Lnet/minecraft/class_1799;Lnet/minecraft/class_1268;Lnet/minecraft/class_3965;)Lnet/minecraft/class_1269;
ARG 1 player
ARG 2 world
@ -46,3 +50,6 @@ CLASS net/minecraft/class_3225 net/minecraft/server/network/ServerPlayerInteract
ARG 1 pos
ARG 2 action
ARG 3 reason
METHOD method_30118 setGameMode (Lnet/minecraft/class_1934;)V
ARG 1 gameMode
METHOD method_30119 getPreviousGameMode ()Lnet/minecraft/class_1934;