Class FabricFluidHelper

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

public class FabricFluidHelper 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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FabricFluidHelper

      public FabricFluidHelper()
  • 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