Klasse Client
java.lang.Object
de.luckymcdev.foundryengine.client.Client
Client-side singleton providing access to all client subsystems and utility methods.
-
Feldübersicht
FelderModifikator und TypFeldBeschreibungstatic final org.apache.commons.lang3.mutable.MutableFloatstatic final org.apache.commons.lang3.mutable.MutableFloatstatic final net.minecraft.client.KeyMapping.Categorystatic final net.minecraft.client.KeyMappingstatic final org.joml.Matrix4fstatic final org.joml.Matrix4fstatic final org.slf4j.Loggerstatic final net.minecraft.client.KeyMappingstatic final org.joml.Matrix4fstatic final org.joml.Matrix4fstatic final org.joml.Matrix4fstatic final org.joml.Matrix4f -
Methodenübersicht
Modifikator und TypMethodeBeschreibungstatic AreaRendererReturns the area renderer.static @Nullable net.minecraft.core.Vec3iReturns the block position the player is looking at, or null.static @Nullable net.minecraft.client.multiplayer.ClientPacketListenerReturns the client network connection, or null.static CutsceneToolReturns the cutscene editor tool.static ClientCutsceneManagerReturns the client cutscene manager.static ClientDialogueManagerReturns the client dialogue manager.static EditorControllerReturns the editor controller.static EditorManagerReturns the editor manager.static net.minecraft.client.renderer.GameRendererReturns the game renderer.static com.mojang.blaze3d.opengl.GlTextureReturns the color texture of the main render target.static com.mojang.blaze3d.opengl.GlTexturegetGlColTexture(com.mojang.blaze3d.pipeline.RenderTarget target) Returns the color texture of the given render target.static com.mojang.blaze3d.opengl.GlTextureReturns the depth texture of the main render target.static com.mojang.blaze3d.opengl.GlTexturegetGlDepthTexture(com.mojang.blaze3d.pipeline.RenderTarget target) Returns the depth texture of the given render target.static com.mojang.blaze3d.opengl.GlDeviceReturns the OpenGL device from the GPU backend.static HotKeyManagerReturns the hotkey manager.static IconExporterLayerReturns the icon exporter layer for non-blocking icon generation.static StringgetIdSource(net.minecraft.resources.Identifier location) Returns the content of the resource atlocationas a UTF-8 string.static StringgetIdSource(net.minecraft.resources.Identifier location, Charset charset) Returns the content of the resource atlocationdecoded withcharset.static ImGraphicsExtractorReturns the shared ImGraphicsExtractor for drawing ImGui widgets with style stacking.static ImGuiManagerReturns the ImGui manager.static ItemCommandManagerstatic net.minecraft.client.CameraReturns the main game camera.static MainMenuReturns the main menu.static com.mojang.blaze3d.pipeline.RenderTargetReturns the main render target.static net.minecraft.client.MinecraftgetMc()Returns the Minecraft instance via the engine interface.static MeshRendererReturns the mesh renderer.static ObjModelManagerReturns the OBJ model manager.static ParticleManagerReturns the particle manager.static @Nullable net.minecraft.client.player.LocalPlayerReturns the local player, or null.static PostEffectManagerReturns the post-effect manager.static @Nullable net.minecraft.world.item.crafting.RecipeManagerReturns the recipe manager from the integrated server, or null.static net.minecraft.server.packs.resources.ResourceManagerReturns the current resource manager.static SkyboxManagerReturns the skybox manager.static ClientWaypointManagerReturns the waypoint renderer.static com.mojang.blaze3d.platform.WindowReturns the main game window.static WorkspaceStateReturns the workspace state.static voidsendCommand(String command) Sends a chat command to the server.static voidsendPacket(net.minecraft.network.protocol.Packet<?> packet) Sends a network packet to the server.static voidsetScreen(net.minecraft.client.gui.screens.Screen screen) Sets the current screen overlay.static com.mojang.blaze3d.opengl.GlTextureunwrapTexture(Object tex) Unwraps a Minecraft texture object to its GL texture handle.static voidupdateMain(org.joml.Matrix4fc modelView, org.joml.Matrix4fc projection) Updates the main view and projection matrices and their derived matrices.
-
Felddetails
-
MODEL_VIEW
public static final org.joml.Matrix4f MODEL_VIEW -
PROJECTION
public static final org.joml.Matrix4f PROJECTION -
WORLD
public static final org.joml.Matrix4f WORLD -
INVERSE_WORLD
public static final org.joml.Matrix4f INVERSE_WORLD -
PERSPECTIVE
public static final org.joml.Matrix4f PERSPECTIVE -
FRUSTUM
public static final org.joml.Matrix4f FRUSTUM -
DEPTH_FAR
public static final org.apache.commons.lang3.mutable.MutableFloat DEPTH_FAR -
DEPTH_NEAR
public static final org.apache.commons.lang3.mutable.MutableFloat DEPTH_NEAR -
EDITOR_CATEGORY
public static final net.minecraft.client.KeyMapping.Category EDITOR_CATEGORY -
EDITOR_KEY
public static final net.minecraft.client.KeyMapping EDITOR_KEY -
MENU_BAR_KEY
public static final net.minecraft.client.KeyMapping MENU_BAR_KEY -
LOGGER
public static final org.slf4j.Logger LOGGER
-
-
Methodendetails
-
getMc
public static net.minecraft.client.Minecraft getMc()Returns the Minecraft instance via the engine interface. -
getResourceManager
public static net.minecraft.server.packs.resources.ResourceManager getResourceManager()Returns the current resource manager. -
getWindow
public static com.mojang.blaze3d.platform.Window getWindow()Returns the main game window. -
getGameRenderer
public static net.minecraft.client.renderer.GameRenderer getGameRenderer()Returns the game renderer. -
getMainRenderTarget
public static com.mojang.blaze3d.pipeline.RenderTarget getMainRenderTarget()Returns the main render target. -
getMainCamera
public static net.minecraft.client.Camera getMainCamera()Returns the main game camera. -
getConnection
public static @Nullable net.minecraft.client.multiplayer.ClientPacketListener getConnection()Returns the client network connection, or null. -
getPlayer
public static @Nullable net.minecraft.client.player.LocalPlayer getPlayer()Returns the local player, or null. -
setScreen
public static void setScreen(net.minecraft.client.gui.screens.Screen screen) Sets the current screen overlay. -
sendCommand
Sends a chat command to the server. -
sendPacket
public static void sendPacket(net.minecraft.network.protocol.Packet<?> packet) Sends a network packet to the server. -
getRecipeManager
public static @Nullable net.minecraft.world.item.crafting.RecipeManager getRecipeManager()Returns the recipe manager from the integrated server, or null. -
getImGuiManager
Returns the ImGui manager. -
getImGraphics
Returns the shared ImGraphicsExtractor for drawing ImGui widgets with style stacking. -
getMainMenu
Returns the main menu. -
getEditorManager
Returns the editor manager. -
getParticleManager
Returns the particle manager. -
getMeshRenderer
Returns the mesh renderer. -
getObjModelManager
Returns the OBJ model manager. -
getSkyboxManager
Returns the skybox manager. -
getWorkspaceState
Returns the workspace state. -
getItemCommandManager
-
getGlDevice
public static com.mojang.blaze3d.opengl.GlDevice getGlDevice()Returns the OpenGL device from the GPU backend. -
getGlColTexture
public static com.mojang.blaze3d.opengl.GlTexture getGlColTexture()Returns the color texture of the main render target. -
getGlColTexture
public static com.mojang.blaze3d.opengl.GlTexture getGlColTexture(com.mojang.blaze3d.pipeline.RenderTarget target) Returns the color texture of the given render target. -
getGlDepthTexture
public static com.mojang.blaze3d.opengl.GlTexture getGlDepthTexture()Returns the depth texture of the main render target. -
getGlDepthTexture
public static com.mojang.blaze3d.opengl.GlTexture getGlDepthTexture(com.mojang.blaze3d.pipeline.RenderTarget target) Returns the depth texture of the given render target. -
unwrapTexture
Unwraps a Minecraft texture object to its GL texture handle. -
getWaypointRenderer
Returns the waypoint renderer. -
getAreaRenderer
Returns the area renderer. -
getCutsceneManager
Returns the client cutscene manager. -
getPostEffectManager
Returns the post-effect manager. -
getEditorController
Returns the editor controller. -
getCutsceneEditor
Returns the cutscene editor tool. -
getDialogueManager
Returns the client dialogue manager. -
getIconExporterLayer
Returns the icon exporter layer for non-blocking icon generation. -
getHotKeyManager
Returns the hotkey manager. -
getBlockHitOrNull
public static @Nullable net.minecraft.core.Vec3i getBlockHitOrNull()Returns the block position the player is looking at, or null. -
getIdSource
Returns the content of the resource atlocationas a UTF-8 string. -
getIdSource
-
updateMain
public static void updateMain(org.joml.Matrix4fc modelView, org.joml.Matrix4fc projection) Updates the main view and projection matrices and their derived matrices.
-