Class WorldEventContext

java.lang.Object
com.ldtteam.structurize.util.WorldRenderMacros
com.minecolonies.core.client.render.worldevent.WorldEventContext

public class WorldEventContext extends com.ldtteam.structurize.util.WorldRenderMacros
Main class for handling world rendering. Also holds all possible values which may be needed during rendering.
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.ldtteam.structurize.util.WorldRenderMacros

    com.ldtteam.structurize.util.WorldRenderMacros.RenderTypes
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final WorldEventContext
     
    @Nullable IColonyView
     

    Fields inherited from class com.ldtteam.structurize.util.WorldRenderMacros

    bufferSource, cameraPosition, clientLevel, clientPlayer, clientRenderDist, COLORED_TRIANGLES, COLORED_TRIANGLES_NC_ND, DEFAULT_LINE_WIDTH, deltaTracker, event, GLINT_LINES, GLINT_LINES_WITH_WIDTH, LINES, LINES_WITH_WIDTH, LINES_WITH_WIDTH_DEPTH_INVERT, mainHandItem, MAX_DEBUG_TEXT_RENDER_DIST_SQUARED, mc, poseStack, STAGE_FOR_LINES
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    checkNearbyColony(net.minecraft.world.level.Level level)
    Checks for a nearby colony
    void
    renderLineAABBWithShadow(net.minecraft.world.phys.AABB aabb, int argbColor, float lineWidth)
     
    void
    renderLineBoxWithShadow(net.minecraft.core.BlockPos pos, int argbColor, float lineWidth)
     
    protected void
    renderWithinContext(net.neoforged.neoforge.client.event.RenderLevelStageEvent.Stage stage)
     

    Methods inherited from class com.ldtteam.structurize.util.WorldRenderMacros

    isVisible, isVisible, isVisible, popPose, popShaderMvMatrix, populateCuboid, populateRectangle, populateRenderLineBox, pushPoseCameraToPos, pushShaderMvMatrixFromPose, renderBlackLineBox, renderBlueprint, renderBlueprint, renderBox, renderBox, renderDebugText, renderDebugText, renderFillRectangle, renderLineAABB, renderLineAABB, renderLineBox, renderLineBox, renderLineBox, renderLineBox, renderRedGlintLineBox, renderWhiteLineBox, renderWorldLastEvent

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Method Details

    • renderWithinContext

      protected void renderWithinContext(net.neoforged.neoforge.client.event.RenderLevelStageEvent.Stage stage)
      Specified by:
      renderWithinContext in class com.ldtteam.structurize.util.WorldRenderMacros
    • checkNearbyColony

      public void checkNearbyColony(net.minecraft.world.level.Level level)
      Checks for a nearby colony
      Parameters:
      level -
    • renderLineBoxWithShadow

      public void renderLineBoxWithShadow(net.minecraft.core.BlockPos pos, int argbColor, float lineWidth)
    • renderLineAABBWithShadow

      public void renderLineAABBWithShadow(net.minecraft.world.phys.AABB aabb, int argbColor, float lineWidth)