Klasse Client

java.lang.Object
de.luckymcdev.foundryengine.client.Client

public final class Client extends Object
Client-side singleton providing access to all client subsystems and utility methods.
  • 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
    • 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

      public static void sendCommand(String command)
      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

      public static ImGuiManager getImGuiManager()
      Returns the ImGui manager.
    • getImGraphics

      public static ImGraphicsExtractor getImGraphics()
      Returns the shared ImGraphicsExtractor for drawing ImGui widgets with style stacking.
    • getMainMenu

      public static MainMenu getMainMenu()
      Returns the main menu.
    • getEditorManager

      public static EditorManager getEditorManager()
      Returns the editor manager.
    • getParticleManager

      public static ParticleManager getParticleManager()
      Returns the particle manager.
    • getMeshRenderer

      public static MeshRenderer getMeshRenderer()
      Returns the mesh renderer.
    • getObjModelManager

      public static ObjModelManager getObjModelManager()
      Returns the OBJ model manager.
    • getSkyboxManager

      public static SkyboxManager getSkyboxManager()
      Returns the skybox manager.
    • getWorkspaceState

      public static WorkspaceState getWorkspaceState()
      Returns the workspace state.
    • getItemCommandManager

      public static ItemCommandManager 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

      public static com.mojang.blaze3d.opengl.GlTexture unwrapTexture(Object tex)
      Unwraps a Minecraft texture object to its GL texture handle.
    • getWaypointRenderer

      public static ClientWaypointManager getWaypointRenderer()
      Returns the waypoint renderer.
    • getAreaRenderer

      public static AreaRenderer getAreaRenderer()
      Returns the area renderer.
    • getCutsceneManager

      public static ClientCutsceneManager getCutsceneManager()
      Returns the client cutscene manager.
    • getPostEffectManager

      public static PostEffectManager getPostEffectManager()
      Returns the post-effect manager.
    • getEditorController

      public static EditorController getEditorController()
      Returns the editor controller.
    • getCutsceneEditor

      public static CutsceneTool getCutsceneEditor()
      Returns the cutscene editor tool.
    • getDialogueManager

      public static ClientDialogueManager getDialogueManager()
      Returns the client dialogue manager.
    • getIconExporterLayer

      public static IconExporterLayer getIconExporterLayer()
      Returns the icon exporter layer for non-blocking icon generation.
    • getHotKeyManager

      public static HotKeyManager 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

      public static String getIdSource(net.minecraft.resources.Identifier location)
      Returns the content of the resource at location as a UTF-8 string.
    • getIdSource

      public static String getIdSource(net.minecraft.resources.Identifier location, Charset charset)
      Returns the content of the resource at location decoded with charset.
    • updateMain

      public static void updateMain(org.joml.Matrix4fc modelView, org.joml.Matrix4fc projection)
      Updates the main view and projection matrices and their derived matrices.