ItemUsageContext.getPlayerFacing -> getHorizontalPlayerFacing (#3508)

Closes #2028. The previous name can easily be confused with
getPlayerLookDirection. The rename shows that it's specifically
horizontal and also matches PlayerEntity.getHorizontalFacing.

(This essentially reverts a rename from #712, albeit with a more natural
order for the words in the name now.)
This commit is contained in:
Juuz 2023-02-20 09:41:47 +02:00 committed by GitHub
parent 47b82b427a
commit 3480d22830
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -22,7 +22,11 @@ CLASS net/minecraft/class_1838 net/minecraft/item/ItemUsageContext
METHOD method_8037 getBlockPos ()Lnet/minecraft/class_2338;
METHOD method_8038 getSide ()Lnet/minecraft/class_2350;
METHOD method_8041 getStack ()Lnet/minecraft/class_1799;
METHOD method_8042 getPlayerFacing ()Lnet/minecraft/class_2350;
METHOD method_8042 getHorizontalPlayerFacing ()Lnet/minecraft/class_2350;
COMMENT {@return the {@linkplain PlayerEntity#getHorizontalFacing horizontal facing
COMMENT direction} of the player}
COMMENT
COMMENT @implSpec If the player is {@code null}, returns {@link Direction#NORTH}.
METHOD method_8044 getPlayerYaw ()F
METHOD method_8045 getWorld ()Lnet/minecraft/class_1937;
METHOD method_8046 shouldCancelInteraction ()Z