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 Type
    Method
    Description
    void
    Clears the internal state of the render state.
    void
    extract(net.minecraft.world.level.block.entity.BlockEntity blockEntity)
    Extracts the render state from the given BlockEntity.
    void
    extractBox(net.minecraft.world.phys.AABB aabb, float width, int color)
    Stores an AABB in the render state.
    void
    extractLine(net.minecraft.core.BlockPos pos1, net.minecraft.core.BlockPos pos2, float width, int color)
    Stores a line between two BlockPoses in the render state.
    void
    submit(com.mojang.blaze3d.vertex.PoseStack stack, net.minecraft.client.renderer.SubmitNodeCollector collector)
    Submits the state to the given SubmitNodeCollector.
  • 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 given BlockEntity. This requires the BlockEntity to expose the AMCapabilities.BLOCK_ETHERIUM capability.
      Parameters:
      blockEntity - The BlockEntity to extract from.
    • extractLine

      void extractLine(net.minecraft.core.BlockPos pos1, net.minecraft.core.BlockPos pos2, float width, int color)
      Stores a line between two BlockPoses in the render state.
      Parameters:
      pos1 - The first BlockPos.
      pos2 - The second BlockPos.
      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 an AABB in the render state.
      Parameters:
      aabb - The AABB to 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 given SubmitNodeCollector.
      Parameters:
      stack - The PoseStack to use.
      collector - The SubmitNodeCollector to submit to.