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

    • 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()
    • 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.
    • getTooltipManager

      public static TooltipManager getTooltipManager()
      Returns the tooltip manager.
    • getBlockHitOrNull

      public static @Nullable net.minecraft.core.Vec3i getBlockHitOrNull()
      Returns the block position the player is looking at, or null.
    • getMainRenderTarget

      public static com.mojang.blaze3d.pipeline.RenderTarget getMainRenderTarget()
      Returns the main render target, abstracting over per-version access paths.
    • getCurrentScreen

      public static @Nullable net.minecraft.client.gui.screens.Screen getCurrentScreen()
      Returns the currently displayed screen, or null.
    • setScreen

      public static void setScreen(@Nullable net.minecraft.client.gui.screens.Screen screen)
      Sets the currently displayed screen, abstracting over per-version access paths.
    • getLevelRendererTarget

      public static @Nullable com.mojang.blaze3d.pipeline.RenderTarget getLevelRendererTarget(net.minecraft.resources.Identifier targetId)
      Returns the level renderer render target for the given target id, or null if unavailable.
    • createSnapshotTarget

      public static com.mojang.blaze3d.pipeline.TextureTarget createSnapshotTarget(String name, int width, int height)
      Creates a depth-capable TextureTarget, abstracting over per-version constructors.
    • 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.