Class FluidHelper

java.lang.Object
com.simibubi.create.foundation.fluid.FluidHelper

public class FluidHelper extends Object
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.world.level.material.Fluid
    convertToFlowing(net.minecraft.world.level.material.Fluid fluid)
     
    static net.minecraft.world.level.material.Fluid
    convertToStill(net.minecraft.world.level.material.Fluid fluid)
     
    static net.neoforged.neoforge.fluids.FluidStack
    copyStackWithAmount(net.neoforged.neoforge.fluids.FluidStack fs, int amount)
     
    exchange(net.neoforged.neoforge.fluids.capability.IFluidHandler fluidTank, net.neoforged.neoforge.fluids.capability.IFluidHandlerItem fluidItem, FluidHelper.FluidExchange preferred, int maxAmount)
     
    exchangeAll(net.neoforged.neoforge.fluids.capability.IFluidHandler fluidTank, net.neoforged.neoforge.fluids.capability.IFluidHandlerItem fluidItem, FluidHelper.FluidExchange preferred)
     
    static net.minecraft.sounds.SoundEvent
    getEmptySound(net.neoforged.neoforge.fluids.FluidStack fluid)
     
    static net.minecraft.sounds.SoundEvent
    getFillSound(net.neoforged.neoforge.fluids.FluidStack fluid)
     
    static boolean
    hasBlockState(net.minecraft.world.level.material.Fluid fluid)
     
    static boolean
    isLava(net.minecraft.world.level.material.Fluid fluid)
     
    static boolean
    isSame(net.neoforged.neoforge.fluids.FluidStack fluidStack, net.minecraft.world.level.material.Fluid fluid)
     
    static boolean
    isSame(net.neoforged.neoforge.fluids.FluidStack fluidStack, net.neoforged.neoforge.fluids.FluidStack fluidStack2)
     
    static boolean
    isTag(net.minecraft.world.level.material.Fluid fluid, net.minecraft.tags.TagKey<net.minecraft.world.level.material.Fluid> tag)
     
    static boolean
    isTag(net.minecraft.world.level.material.FluidState fluid, net.minecraft.tags.TagKey<net.minecraft.world.level.material.Fluid> tag)
     
    static boolean
    isTag(net.neoforged.neoforge.fluids.FluidStack fluid, net.minecraft.tags.TagKey<net.minecraft.world.level.material.Fluid> tag)
     
    static boolean
    isWater(net.minecraft.world.level.material.Fluid fluid)
     
    static boolean
    tryEmptyItemIntoBE(net.minecraft.world.level.Level worldIn, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand handIn, net.minecraft.world.item.ItemStack heldItem, SmartBlockEntity be)
     
    static boolean
    tryFillItemFromBE(net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand handIn, net.minecraft.world.item.ItemStack heldItem, SmartBlockEntity be)
     

    Methods inherited from class java.lang.Object

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

    • FluidHelper

      public FluidHelper()
  • Method Details

    • isWater

      public static boolean isWater(net.minecraft.world.level.material.Fluid fluid)
    • isLava

      public static boolean isLava(net.minecraft.world.level.material.Fluid fluid)
    • isSame

      public static boolean isSame(net.neoforged.neoforge.fluids.FluidStack fluidStack, net.neoforged.neoforge.fluids.FluidStack fluidStack2)
    • isSame

      public static boolean isSame(net.neoforged.neoforge.fluids.FluidStack fluidStack, net.minecraft.world.level.material.Fluid fluid)
    • isTag

      public static boolean isTag(net.minecraft.world.level.material.Fluid fluid, net.minecraft.tags.TagKey<net.minecraft.world.level.material.Fluid> tag)
    • isTag

      public static boolean isTag(net.minecraft.world.level.material.FluidState fluid, net.minecraft.tags.TagKey<net.minecraft.world.level.material.Fluid> tag)
    • isTag

      public static boolean isTag(net.neoforged.neoforge.fluids.FluidStack fluid, net.minecraft.tags.TagKey<net.minecraft.world.level.material.Fluid> tag)
    • getFillSound

      public static net.minecraft.sounds.SoundEvent getFillSound(net.neoforged.neoforge.fluids.FluidStack fluid)
    • getEmptySound

      public static net.minecraft.sounds.SoundEvent getEmptySound(net.neoforged.neoforge.fluids.FluidStack fluid)
    • hasBlockState

      public static boolean hasBlockState(net.minecraft.world.level.material.Fluid fluid)
    • copyStackWithAmount

      public static net.neoforged.neoforge.fluids.FluidStack copyStackWithAmount(net.neoforged.neoforge.fluids.FluidStack fs, int amount)
    • convertToFlowing

      public static net.minecraft.world.level.material.Fluid convertToFlowing(net.minecraft.world.level.material.Fluid fluid)
    • convertToStill

      public static net.minecraft.world.level.material.Fluid convertToStill(net.minecraft.world.level.material.Fluid fluid)
    • tryEmptyItemIntoBE

      public static boolean tryEmptyItemIntoBE(net.minecraft.world.level.Level worldIn, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand handIn, net.minecraft.world.item.ItemStack heldItem, SmartBlockEntity be)
    • tryFillItemFromBE

      public static boolean tryFillItemFromBE(net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand handIn, net.minecraft.world.item.ItemStack heldItem, SmartBlockEntity be)
    • exchange

      @Nullable public static FluidHelper.FluidExchange exchange(net.neoforged.neoforge.fluids.capability.IFluidHandler fluidTank, net.neoforged.neoforge.fluids.capability.IFluidHandlerItem fluidItem, FluidHelper.FluidExchange preferred, int maxAmount)
    • exchangeAll

      @Nullable public static FluidHelper.FluidExchange exchangeAll(net.neoforged.neoforge.fluids.capability.IFluidHandler fluidTank, net.neoforged.neoforge.fluids.capability.IFluidHandlerItem fluidItem, FluidHelper.FluidExchange preferred)