Interface MagitechGogglesOverlayRenderState
@NonExtendable
public interface MagitechGogglesOverlayRenderState
Represents a render state for the Magitech Goggles overlay. Also contains methods for extracting and submitting.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears the internal state of the render state.voidextract(net.minecraft.world.level.block.entity.BlockEntity blockEntity) Extracts the render state from the givenBlockEntity.voidextractBox(net.minecraft.world.phys.AABB aabb, float width, int color) Stores anAABBin the render state.voidextractLine(net.minecraft.core.BlockPos pos1, net.minecraft.core.BlockPos pos2, float width, int color) Stores a line between twoBlockPoses in the render state.voidsubmit(com.mojang.blaze3d.vertex.PoseStack stack, net.minecraft.client.renderer.SubmitNodeCollector collector) Submits the state to the givenSubmitNodeCollector.
-
Method Details
-
clear
void clear()Clears the internal state of the render state. -
extract
void extract(net.minecraft.world.level.block.entity.BlockEntity blockEntity) Extracts the render state from the givenBlockEntity. This requires theBlockEntityto expose theAMCapabilities.BLOCK_ETHERIUMcapability.- Parameters:
blockEntity- TheBlockEntityto extract from.
-
extractLine
void extractLine(net.minecraft.core.BlockPos pos1, net.minecraft.core.BlockPos pos2, float width, int color) Stores a line between twoBlockPoses in the render state.- Parameters:
pos1- The firstBlockPos.pos2- The secondBlockPos.width- The width of the line.color- The color of the line.
-
extractBox
void extractBox(net.minecraft.world.phys.AABB aabb, float width, int color) Stores anAABBin the render state.- Parameters:
aabb- TheAABBto store.width- The width of the line.color- The color of the line.
-
submit
void submit(com.mojang.blaze3d.vertex.PoseStack stack, net.minecraft.client.renderer.SubmitNodeCollector collector) Submits the state to the givenSubmitNodeCollector.- Parameters:
stack- ThePoseStackto use.collector- TheSubmitNodeCollectorto submit to.
-