public interface ScreenHandlerContext
Modifier and Type | Field and Description |
---|---|
static ScreenHandlerContext |
EMPTY
The dummy screen handler context for clientside screen handlers.
|
Modifier and Type | Method and Description |
---|---|
static ScreenHandlerContext |
create(World world,
BlockPos pos)
Returns an active screen handler context.
|
default void |
run(BiConsumer<World,BlockPos> function) |
<T> Optional<T> |
run(BiFunction<World,BlockPos,T> function) |
default <T> T |
run(BiFunction<World,BlockPos,T> function,
T defaultValue) |
static final ScreenHandlerContext EMPTY
static ScreenHandlerContext create(World world, BlockPos pos)
<T> Optional<T> run(BiFunction<World,BlockPos,T> function)
default <T> T run(BiFunction<World,BlockPos,T> function, T defaultValue)
default void run(BiConsumer<World,BlockPos> function)