Package tschipp.linear.client
Class LinePreview
java.lang.Object
tschipp.linear.client.LinePreview
Shows the line being dragged as ghost blocks, tinted red where they won't be placed (out of blocks,
out of range or over the limit) and blue on the end. The block count is only updated when the line
changes or once a second, since it can be expensive (e.g. a bag that has to craft).
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable LinePreview.Countercounter()The block shown next to the crosshair and how many of it the line uses, or null when not dragging.static voidrender(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.Camera camera) Called from each loader's world render hook, after translucent blocks.
-
Method Details
-
render
public static void render(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.Camera camera) Called from each loader's world render hook, after translucent blocks. -
counter
The block shown next to the crosshair and how many of it the line uses, or null when not dragging.incompleteif some positions won't get a block.
-