Package org.cyclops.cyclopscore.helper
Class GuiHelpersNeoForge
java.lang.Object
org.cyclops.cyclopscore.helper.GuiHelpersCommon
org.cyclops.cyclopscore.helper.GuiHelpersNeoForge
- All Implemented Interfaces:
org.cyclops.cyclopscore.helper.IGuiHelpers,IGuiHelpersNeoForge
public class GuiHelpersNeoForge
extends org.cyclops.cyclopscore.helper.GuiHelpersCommon
implements IGuiHelpersNeoForge
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.cyclops.cyclopscore.helper.IGuiHelpers
org.cyclops.cyclopscore.helper.IGuiHelpers.ProgressDirection -
Field Summary
Fields inherited from class org.cyclops.cyclopscore.helper.GuiHelpersCommon
modHelpers -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidrenderFluidSlot(net.minecraft.client.gui.GuiGraphics gui, net.neoforged.neoforge.fluids.FluidStack fluidStack, int x, int y) Render the given fluid in a standard slot.voidrenderFluidTank(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.voidrenderOverlayedFluidTank(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 class org.cyclops.cyclopscore.helper.GuiHelpersCommon
drawTooltip, drawTooltipBackground, fillGradient, getSlotSize, getSlotSizeInner, quantityToScaledString, renderProgressBar, renderTooltip, renderTooltipOptionalMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.cyclops.cyclopscore.helper.IGuiHelpers
drawTooltip, drawTooltipBackground, fillGradient, getSlotSize, getSlotSizeInner, quantityToScaledString, renderProgressBar, renderTooltip, renderTooltipOptional
-
Constructor Details
-
GuiHelpersNeoForge
public GuiHelpersNeoForge(org.cyclops.cyclopscore.helper.IModHelpers modHelpers)
-
-
Method Details
-
renderFluidTank
public 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) Description copied from interface:IGuiHelpersNeoForgeRender a fluid tank in a gui.- Specified by:
renderFluidTankin interfaceIGuiHelpersNeoForge- 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
public void renderFluidSlot(net.minecraft.client.gui.GuiGraphics gui, @Nullable net.neoforged.neoforge.fluids.FluidStack fluidStack, int x, int y) Description copied from interface:IGuiHelpersNeoForgeRender the given fluid in a standard slot.- Specified by:
renderFluidSlotin interfaceIGuiHelpersNeoForge- Parameters:
gui- The gui to render in.fluidStack- The fluid to render.x- The slot X position.y- The slot Y position.
-
renderOverlayedFluidTank
public 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) Description copied from interface:IGuiHelpersNeoForgeRender a fluid tank in a gui with a tank overlay. This assumes that the tank overlay has the provided width and height.- Specified by:
renderOverlayedFluidTankin interfaceIGuiHelpersNeoForge- 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.
-