Class NeoForgeFluidHelper

java.lang.Object
net.createmod.catnip.platform.NeoForgeFluidHelper
All Implemented Interfaces:
ModFluidHelper

public class NeoForgeFluidHelper extends Object implements ModFluidHelper
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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, long amount, @Nullable net.minecraft.core.component.DataComponentPatch fluidData)
     
    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, @Nullable net.minecraft.core.component.DataComponentPatch fluidData)
     
    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
  • Constructor Details

    • NeoForgeFluidHelper

      public NeoForgeFluidHelper()
  • Method Details

    • 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
    • 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
    • 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
    • isLighterThanAir

      public boolean isLighterThanAir(net.minecraft.world.level.material.Fluid fluid, @Nullable @Nullable net.minecraft.core.component.DataComponentPatch fluidData)
      Specified by:
      isLighterThanAir in interface ModFluidHelper
    • 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)