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
FieldsFields 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 TypeMethodDescriptionvoidcheckNearbyColony(net.minecraft.world.level.Level level) Checks for a nearby colonyvoidrenderLineAABBWithShadow(net.minecraft.world.phys.AABB aabb, int argbColor, float lineWidth) voidrenderLineBoxWithShadow(net.minecraft.core.BlockPos pos, int argbColor, float lineWidth) protected voidrenderWithinContext(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
-
Field Details
-
INSTANCE
-
nearestColony
-
-
Method Details
-
renderWithinContext
protected void renderWithinContext(net.neoforged.neoforge.client.event.RenderLevelStageEvent.Stage stage) - Specified by:
renderWithinContextin classcom.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)
-