2020-03-12 17:05:02 -04:00
|
|
|
CLASS net/minecraft/class_3914 net/minecraft/screen/ScreenHandlerContext
|
|
|
|
COMMENT Screen handler contexts allow screen handlers to interact with the
|
|
|
|
COMMENT logical server's world safely.
|
2019-06-28 17:55:20 -04:00
|
|
|
FIELD field_17304 EMPTY Lnet/minecraft/class_3914;
|
2020-03-12 17:05:02 -04:00
|
|
|
COMMENT The dummy screen handler context for clientside screen handlers.
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_17392 create (Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Lnet/minecraft/class_3914;
|
2020-03-12 17:05:02 -04:00
|
|
|
COMMENT Returns an active screen handler context. Used on the logical server.
|
2020-01-21 13:21:12 -05:00
|
|
|
ARG 0 world
|
|
|
|
ARG 1 pos
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_17393 run (Ljava/util/function/BiConsumer;)V
|
2021-03-14 08:28:47 -04:00
|
|
|
COMMENT Runs a {@link BiConsumer} with this context's world and position
|
|
|
|
COMMENT if this context is active.
|
2019-02-16 15:49:37 -05:00
|
|
|
ARG 1 function
|
2021-06-27 06:18:10 -04:00
|
|
|
METHOD method_17394 (Ljava/util/function/BiConsumer;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Ljava/util/Optional;
|
|
|
|
ARG 1 world
|
|
|
|
ARG 2 pos
|
2021-03-14 08:28:47 -04:00
|
|
|
METHOD method_17395 get (Ljava/util/function/BiFunction;)Ljava/util/Optional;
|
|
|
|
COMMENT Gets an optional value from this context's world and position
|
|
|
|
COMMENT with a {@link BiFunction} getter.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @return a present {@link Optional} with the getter's return value,
|
|
|
|
COMMENT or {@link Optional#empty()} if this context is empty
|
|
|
|
ARG 1 getter
|
|
|
|
COMMENT a function that gets a non-null value from this context's world and position
|
|
|
|
METHOD method_17396 get (Ljava/util/function/BiFunction;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
COMMENT Gets a value from this context's world and position
|
|
|
|
COMMENT with a {@link BiFunction} getter.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @return the getter's return value if this context is active,
|
|
|
|
COMMENT the default value otherwise
|
|
|
|
ARG 1 getter
|
|
|
|
COMMENT a function that gets a non-null value from this context's world and position
|
2019-02-16 15:49:37 -05:00
|
|
|
ARG 2 defaultValue
|
2021-03-14 08:28:47 -04:00
|
|
|
COMMENT a fallback default value, used if this context is empty
|