Package org.cyclops.cyclopscore.helper
Interface IRenderHelpersNeoForge
- All Superinterfaces:
org.cyclops.cyclopscore.helper.IRenderHelpers
- All Known Implementing Classes:
RenderHelpersNeoForge
public interface IRenderHelpersNeoForge
extends org.cyclops.cyclopscore.helper.IRenderHelpers
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
-
Method Summary
Modifier and TypeMethodDescriptionint
getFluidBakedQuadColor
(net.neoforged.neoforge.fluids.FluidStack fluidStack) Get the fluid color to use in a baked quad.net.minecraft.client.renderer.texture.TextureAtlasSprite
getFluidIcon
(net.minecraft.world.level.material.Fluid fluid, net.minecraft.core.Direction side) Get the icon of a fluid for a side in a safe way.net.minecraft.client.renderer.texture.TextureAtlasSprite
getFluidIcon
(net.neoforged.neoforge.fluids.FluidStack fluid, net.minecraft.core.Direction side) Get the icon of a fluid for a side in a safe way.getFluidVertexBufferColor
(net.neoforged.neoforge.fluids.FluidStack fluidStack) Get the fluid color to use in buffer rendering.void
renderFluidContext
(net.neoforged.neoforge.fluids.FluidStack fluid, com.mojang.blaze3d.vertex.PoseStack matrixStack, IRenderHelpersNeoForge.IFluidContextRender render) Prepare a render system context for rendering fluids.Methods inherited from interface org.cyclops.cyclopscore.helper.IRenderHelpers
addBlockHitEffects, bindTexture, blitColored, blitColored, drawScaledCenteredString, drawScaledCenteredString, drawScaledCenteredString, drawScaledString, emitParticle, getBakedModel, getBlockIcon, getBlockTextureGetter, getDynamicBakedModel, isPointInButton, isPointInRegion, isPointInRegion
-
Method Details
-
getFluidIcon
net.minecraft.client.renderer.texture.TextureAtlasSprite getFluidIcon(net.minecraft.world.level.material.Fluid fluid, net.minecraft.core.Direction side) Get the icon of a fluid for a side in a safe way.- Parameters:
fluid
- The fluid.side
- The side to get the icon from, UP if null.- Returns:
- The icon.
-
getFluidIcon
net.minecraft.client.renderer.texture.TextureAtlasSprite getFluidIcon(net.neoforged.neoforge.fluids.FluidStack fluid, net.minecraft.core.Direction side) Get the icon of a fluid for a side in a safe way.- Parameters:
fluid
- The fluid stack.side
- The side to get the icon from, UP if null.- Returns:
- The icon.
-
renderFluidContext
void renderFluidContext(net.neoforged.neoforge.fluids.FluidStack fluid, com.mojang.blaze3d.vertex.PoseStack matrixStack, IRenderHelpersNeoForge.IFluidContextRender render) Prepare a render system context for rendering fluids.- Parameters:
fluid
- The fluid stack.matrixStack
- The matrix stack.render
- The actual fluid renderer.
-
getFluidVertexBufferColor
org.apache.commons.lang3.tuple.Triple<Float,Float, getFluidVertexBufferColorFloat> (net.neoforged.neoforge.fluids.FluidStack fluidStack) Get the fluid color to use in buffer rendering.- Parameters:
fluidStack
- The fluid stack.- Returns:
- The RGB colors.
-
getFluidBakedQuadColor
int getFluidBakedQuadColor(net.neoforged.neoforge.fluids.FluidStack fluidStack) Get the fluid color to use in a baked quad.- Parameters:
fluidStack
- The fluid stack.- Returns:
- The BGR colors.
-