2020-11-07 18:17:37 -05:00
|
|
|
CLASS net/minecraft/class_5561 net/minecraft/block/entity/ChestStateManager
|
|
|
|
COMMENT Handles the viewer count for chest-like block entities.
|
|
|
|
FIELD field_27215 viewerCount I
|
|
|
|
METHOD method_31678 getViewerCount ()I
|
|
|
|
METHOD method_31679 isPlayerViewing (Lnet/minecraft/class_1657;)Z
|
|
|
|
COMMENT Determines whether the given player is currently viewing this chest.
|
|
|
|
ARG 1 player
|
|
|
|
METHOD method_31680 getInRangeViewerCount (Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)I
|
|
|
|
ARG 1 world
|
|
|
|
ARG 2 pos
|
|
|
|
METHOD method_31681 onChestOpened (Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
|
|
|
|
COMMENT Run when this chest is opened (when the viewer count becomes nonzero).
|
|
|
|
ARG 1 world
|
|
|
|
ARG 2 pos
|
|
|
|
ARG 3 state
|
|
|
|
METHOD method_31682 onInteracted (Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;II)V
|
|
|
|
COMMENT Run when a player interacts with this chest.
|
|
|
|
ARG 1 world
|
|
|
|
ARG 2 pos
|
|
|
|
ARG 3 state
|
|
|
|
ARG 4 oldViewerCount
|
|
|
|
ARG 5 newViewerCount
|
|
|
|
METHOD method_31683 onChestClosed (Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
|
|
|
|
COMMENT Run when this chest closes (when the viewer count reaches zero).
|
|
|
|
ARG 1 world
|
|
|
|
ARG 2 pos
|
|
|
|
ARG 3 state
|
2020-12-02 13:29:46 -05:00
|
|
|
METHOD method_31684 openChest (Lnet/minecraft/class_1657;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
|
2021-01-21 18:33:27 -05:00
|
|
|
ARG 1 player
|
|
|
|
ARG 2 world
|
|
|
|
ARG 3 pos
|
|
|
|
ARG 4 state
|
2020-12-02 13:29:46 -05:00
|
|
|
METHOD method_31685 closeChest (Lnet/minecraft/class_1657;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
|
2021-01-21 18:33:27 -05:00
|
|
|
ARG 1 player
|
|
|
|
ARG 2 world
|
|
|
|
ARG 3 pos
|
|
|
|
ARG 4 state
|
2020-11-07 18:17:37 -05:00
|
|
|
METHOD method_31686 updateViewerCount (Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
|
|
|
|
ARG 1 world
|
|
|
|
ARG 2 pos
|
|
|
|
ARG 3 state
|
|
|
|
METHOD method_31687 scheduleBlockTick (Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
|
|
|
|
ARG 0 world
|
|
|
|
ARG 1 pos
|
|
|
|
ARG 2 state
|