Class NeoForgeFluidHelper

java.lang.Object
net.createmod.catnip.platform.NeoForgeFluidHelper
All Implemented Interfaces:
ModFluidHelper<net.neoforged.neoforge.fluids.FluidStack>

public class NeoForgeFluidHelper extends Object implements ModFluidHelper<net.neoforged.neoforge.fluids.FluidStack>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    getColor(net.minecraft.world.level.material.Fluid fluid)
     
    int
    getColor(net.minecraft.world.level.material.Fluid fluid, long amount, @Nullable net.minecraft.core.component.DataComponentPatch fluidData)
     
    int
    getLuminosity(net.minecraft.world.level.material.Fluid fluid)
     
    int
    getLuminosity(net.minecraft.world.level.material.Fluid fluid, long amount, @Nullable net.minecraft.core.component.DataComponentPatch fluidData)
     
    net.minecraft.resources.ResourceLocation
    getStillTexture(net.minecraft.world.level.material.Fluid fluid)
     
    net.minecraft.resources.ResourceLocation
    getStillTexture(net.minecraft.world.level.material.Fluid fluid, long amount, @Nullable net.minecraft.core.component.DataComponentPatch fluidData)
     
    boolean
    isLighterThanAir(net.minecraft.world.level.material.Fluid fluid)
     
    net.neoforged.neoforge.fluids.FluidStack
    toStack(net.minecraft.world.level.material.Fluid fluid, long amount, @Nullable net.minecraft.core.component.DataComponentPatch fluidData)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.createmod.catnip.platform.services.ModFluidHelper

    getColor, getLuminosity, getStillTexture, toStack
  • Constructor Details

    • NeoForgeFluidHelper

      public NeoForgeFluidHelper()
  • Method Details

    • getColor

      public int getColor(net.minecraft.world.level.material.Fluid fluid)
      Specified by:
      getColor in interface ModFluidHelper<net.neoforged.neoforge.fluids.FluidStack>
    • getColor

      public int getColor(net.minecraft.world.level.material.Fluid fluid, long amount, @Nullable @Nullable net.minecraft.core.component.DataComponentPatch fluidData)
      Specified by:
      getColor in interface ModFluidHelper<net.neoforged.neoforge.fluids.FluidStack>
    • getLuminosity

      public int getLuminosity(net.minecraft.world.level.material.Fluid fluid)
      Specified by:
      getLuminosity in interface ModFluidHelper<net.neoforged.neoforge.fluids.FluidStack>
    • getLuminosity

      public int getLuminosity(net.minecraft.world.level.material.Fluid fluid, long amount, @Nullable @Nullable net.minecraft.core.component.DataComponentPatch fluidData)
      Specified by:
      getLuminosity in interface ModFluidHelper<net.neoforged.neoforge.fluids.FluidStack>
    • getStillTexture

      public net.minecraft.resources.ResourceLocation getStillTexture(net.minecraft.world.level.material.Fluid fluid)
      Specified by:
      getStillTexture in interface ModFluidHelper<net.neoforged.neoforge.fluids.FluidStack>
    • getStillTexture

      public net.minecraft.resources.ResourceLocation getStillTexture(net.minecraft.world.level.material.Fluid fluid, long amount, @Nullable @Nullable net.minecraft.core.component.DataComponentPatch fluidData)
      Specified by:
      getStillTexture in interface ModFluidHelper<net.neoforged.neoforge.fluids.FluidStack>
    • isLighterThanAir

      public boolean isLighterThanAir(net.minecraft.world.level.material.Fluid fluid)
      Specified by:
      isLighterThanAir in interface ModFluidHelper<net.neoforged.neoforge.fluids.FluidStack>
    • toStack

      public net.neoforged.neoforge.fluids.FluidStack toStack(net.minecraft.world.level.material.Fluid fluid, long amount, @Nullable @Nullable net.minecraft.core.component.DataComponentPatch fluidData)
      Specified by:
      toStack in interface ModFluidHelper<net.neoforged.neoforge.fluids.FluidStack>