Package net.minecraft.screen
Interface ScreenHandlerContext
public interface ScreenHandlerContext
Screen handler contexts allow screen handlers to interact with the
logical server's world safely.
-
Field Summary
Fields Modifier and Type Field Description static ScreenHandlerContextEMPTYThe dummy screen handler context for clientside screen handlers. -
Method Summary
Modifier and Type Method Description static ScreenHandlerContextcreate(World world, BlockPos pos)Returns an active screen handler context.default voidrun(BiConsumer<World,BlockPos> function)<T> Optional<T>run(BiFunction<World,BlockPos,T> function)default <T> Trun(BiFunction<World,BlockPos,T> function, T defaultValue)