Package org.cyclops.cyclopscore.helper
Class RenderHelpersNeoForge
java.lang.Object
org.cyclops.cyclopscore.helper.RenderHelpersCommon
org.cyclops.cyclopscore.helper.RenderHelpersNeoForge
- All Implemented Interfaces:
org.cyclops.cyclopscore.helper.IRenderHelpers
,IRenderHelpersNeoForge
public class RenderHelpersNeoForge
extends org.cyclops.cyclopscore.helper.RenderHelpersCommon
implements IRenderHelpersNeoForge
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.cyclops.cyclopscore.helper.IRenderHelpersNeoForge
IRenderHelpersNeoForge.IFluidContextRender
-
Constructor Summary
ConstructorDescriptionRenderHelpersNeoForge
(org.cyclops.cyclopscore.helper.IModHelpers modHelpers) -
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 class org.cyclops.cyclopscore.helper.RenderHelpersCommon
addBlockHitEffects, bindTexture, blitColored, blitColored, drawScaledCenteredString, drawScaledCenteredString, drawScaledCenteredString, drawScaledString, emitParticle, getBakedModel, getBlockIcon, getBlockTextureGetter, getDynamicBakedModel, isPointInButton, isPointInRegion, isPointInRegion
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
-
Constructor Details
-
RenderHelpersNeoForge
public RenderHelpersNeoForge(org.cyclops.cyclopscore.helper.IModHelpers modHelpers)
-
-
Method Details
-
getFluidIcon
public net.minecraft.client.renderer.texture.TextureAtlasSprite getFluidIcon(net.minecraft.world.level.material.Fluid fluid, net.minecraft.core.Direction side) Description copied from interface:IRenderHelpersNeoForge
Get the icon of a fluid for a side in a safe way.- Specified by:
getFluidIcon
in interfaceIRenderHelpersNeoForge
- Parameters:
fluid
- The fluid.side
- The side to get the icon from, UP if null.- Returns:
- The icon.
-
getFluidIcon
public net.minecraft.client.renderer.texture.TextureAtlasSprite getFluidIcon(net.neoforged.neoforge.fluids.FluidStack fluid, net.minecraft.core.Direction side) Description copied from interface:IRenderHelpersNeoForge
Get the icon of a fluid for a side in a safe way.- Specified by:
getFluidIcon
in interfaceIRenderHelpersNeoForge
- Parameters:
fluid
- The fluid stack.side
- The side to get the icon from, UP if null.- Returns:
- The icon.
-
renderFluidContext
public void renderFluidContext(net.neoforged.neoforge.fluids.FluidStack fluid, com.mojang.blaze3d.vertex.PoseStack matrixStack, IRenderHelpersNeoForge.IFluidContextRender render) Description copied from interface:IRenderHelpersNeoForge
Prepare a render system context for rendering fluids.- Specified by:
renderFluidContext
in interfaceIRenderHelpersNeoForge
- Parameters:
fluid
- The fluid stack.matrixStack
- The matrix stack.render
- The actual fluid renderer.
-
getFluidVertexBufferColor
public org.apache.commons.lang3.tuple.Triple<Float,Float, getFluidVertexBufferColorFloat> (net.neoforged.neoforge.fluids.FluidStack fluidStack) Description copied from interface:IRenderHelpersNeoForge
Get the fluid color to use in buffer rendering.- Specified by:
getFluidVertexBufferColor
in interfaceIRenderHelpersNeoForge
- Parameters:
fluidStack
- The fluid stack.- Returns:
- The RGB colors.
-
getFluidBakedQuadColor
public int getFluidBakedQuadColor(net.neoforged.neoforge.fluids.FluidStack fluidStack) Description copied from interface:IRenderHelpersNeoForge
Get the fluid color to use in a baked quad.- Specified by:
getFluidBakedQuadColor
in interfaceIRenderHelpersNeoForge
- Parameters:
fluidStack
- The fluid stack.- Returns:
- The BGR colors.
-