Interface IFullscreen
public interface IFullscreen
-
Method Summary
Modifier and TypeMethodDescriptionvoidcenterOn(double x, double z) Centers the map on x, z coordvoidclose()Closes the map.net.minecraft.client.MinecraftGets minecraftnet.minecraft.client.gui.screens.ScreenGets the screen.Gets the current UIStatevoidMoves to the next maptypevoidupdateMapType(Context.MapType mapType, Integer vSlice, net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension) Updates to a maptype.voidzoomIn()Zooms invoidzoomOut()Zoomes out.
-
Method Details
-
updateMapType
void updateMapType(Context.MapType mapType, Integer vSlice, net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension) Updates to a maptype.- Parameters:
mapType- - The maptype.vSlice- - The slice.dimension- - The dimension
-
toggleMapType
void toggleMapType()Moves to the next maptype -
zoomIn
void zoomIn()Zooms in -
zoomOut
void zoomOut()Zoomes out. -
centerOn
void centerOn(double x, double z) Centers the map on x, z coord- Parameters:
x- - The X coord.z- - The Z coord.
-
close
void close()Closes the map. -
getUiState
UIState getUiState()Gets the current UIState- Returns:
- - The uiState.
-
getMinecraft
net.minecraft.client.Minecraft getMinecraft()Gets minecraft- Returns:
- Minecraft
-
getScreen
net.minecraft.client.gui.screens.Screen getScreen()Gets the screen.- Returns:
- the Screen.
-