mirror of https://github.com/FabricMC/yarn.git
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:
parent
47b82b427a
commit
3480d22830
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue