Package org.cyclops.cyclopscore.helper
Interface IGuiHelpersNeoForge
- All Superinterfaces:
org.cyclops.cyclopscore.helper.IGuiHelpers
- All Known Implementing Classes:
GuiHelpersNeoForge
public interface IGuiHelpersNeoForge
extends org.cyclops.cyclopscore.helper.IGuiHelpers
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.cyclops.cyclopscore.helper.IGuiHelpers
org.cyclops.cyclopscore.helper.IGuiHelpers.ProgressDirection
-
Method Summary
Modifier and TypeMethodDescriptionvoid
renderFluidSlot
(net.minecraft.client.gui.GuiGraphics gui, net.neoforged.neoforge.fluids.FluidStack fluidStack, int x, int y) Render the given fluid in a standard slot.void
renderFluidTank
(net.minecraft.client.gui.GuiGraphics gui, net.neoforged.neoforge.fluids.FluidStack fluidStack, int capacity, int x, int y, int width, int height) Render a fluid tank in a gui.void
renderOverlayedFluidTank
(net.minecraft.client.gui.GuiGraphics gui, net.neoforged.neoforge.fluids.FluidStack fluidStack, int capacity, int x, int y, int width, int height, net.minecraft.resources.ResourceLocation textureOverlay, int overlayTextureX, int overlayTextureY) Render a fluid tank in a gui with a tank overlay.Methods inherited from interface org.cyclops.cyclopscore.helper.IGuiHelpers
drawTooltip, drawTooltipBackground, fillGradient, getSlotSize, getSlotSizeInner, quantityToScaledString, renderProgressBar, renderTooltip, renderTooltipOptional
-
Method Details
-
renderFluidTank
void renderFluidTank(net.minecraft.client.gui.GuiGraphics gui, @Nullable net.neoforged.neoforge.fluids.FluidStack fluidStack, int capacity, int x, int y, int width, int height) Render a fluid tank in a gui.- Parameters:
gui
- The gui to render in.fluidStack
- The fluid to render.capacity
- The tank capacity.x
- The gui x position, including gui left.y
- The gui y position, including gui top.width
- The tank width.height
- The tank height.
-
renderFluidSlot
void renderFluidSlot(net.minecraft.client.gui.GuiGraphics gui, @Nullable net.neoforged.neoforge.fluids.FluidStack fluidStack, int x, int y) Render the given fluid in a standard slot.- Parameters:
gui
- The gui to render in.fluidStack
- The fluid to render.x
- The slot X position.y
- The slot Y position.
-
renderOverlayedFluidTank
void renderOverlayedFluidTank(net.minecraft.client.gui.GuiGraphics gui, @Nullable net.neoforged.neoforge.fluids.FluidStack fluidStack, int capacity, int x, int y, int width, int height, net.minecraft.resources.ResourceLocation textureOverlay, int overlayTextureX, int overlayTextureY) Render a fluid tank in a gui with a tank overlay. This assumes that the tank overlay has the provided width and height.- Parameters:
gui
- The gui to render in.fluidStack
- The fluid to render.capacity
- The tank capacity.x
- The gui x position, including gui left.y
- The gui y position, including gui top.width
- The tank width.height
- The tank height.textureOverlay
- The texture of the tank overlay.overlayTextureX
- The overlay x texture position.overlayTextureY
- The overlay y texture position.
-