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 class 
     
  • 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.minecraftforge.fluids.FluidStack
    copyStackWithAmount​(net.minecraftforge.fluids.FluidStack fs, int amount)
     
    static net.minecraftforge.fluids.FluidStack
    deserializeFluidStack​(com.google.gson.JsonObject json)
     
    exchange​(net.minecraftforge.fluids.capability.IFluidHandler fluidTank, net.minecraftforge.fluids.capability.IFluidHandlerItem fluidItem, FluidHelper.FluidExchange preferred, int maxAmount)
     
    exchangeAll​(net.minecraftforge.fluids.capability.IFluidHandler fluidTank, net.minecraftforge.fluids.capability.IFluidHandlerItem fluidItem, FluidHelper.FluidExchange preferred)
     
    static boolean
    hasBlockState​(net.minecraft.world.level.material.Fluid fluid)
     
    static boolean
    isLava​(net.minecraft.world.level.material.Fluid fluid)
     
    static boolean
    isWater​(net.minecraft.world.level.material.Fluid fluid)
     
    static com.google.gson.JsonElement
    serializeFluidStack​(net.minecraftforge.fluids.FluidStack stack)
     
    static boolean
    tryEmptyItemIntoTE​(net.minecraft.world.level.Level worldIn, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand handIn, net.minecraft.world.item.ItemStack heldItem, SmartTileEntity te)
     
    static boolean
    tryFillItemFromTE​(net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand handIn, net.minecraft.world.item.ItemStack heldItem, SmartTileEntity te)
     

    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)
    • hasBlockState

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

      public static net.minecraftforge.fluids.FluidStack copyStackWithAmount(net.minecraftforge.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)
    • serializeFluidStack

      public static com.google.gson.JsonElement serializeFluidStack(net.minecraftforge.fluids.FluidStack stack)
    • deserializeFluidStack

      public static net.minecraftforge.fluids.FluidStack deserializeFluidStack(com.google.gson.JsonObject json)
    • tryEmptyItemIntoTE

      public static boolean tryEmptyItemIntoTE(net.minecraft.world.level.Level worldIn, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand handIn, net.minecraft.world.item.ItemStack heldItem, SmartTileEntity te)
    • tryFillItemFromTE

      public static boolean tryFillItemFromTE(net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand handIn, net.minecraft.world.item.ItemStack heldItem, SmartTileEntity te)
    • exchange

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

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