Class FluidHelper
java.lang.Object
com.simibubi.create.foundation.fluid.FluidHelper
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.world.level.material.FluidconvertToFlowing(net.minecraft.world.level.material.Fluid fluid) static net.minecraft.world.level.material.FluidconvertToStill(net.minecraft.world.level.material.Fluid fluid) static net.minecraftforge.fluids.FluidStackcopyStackWithAmount(net.minecraftforge.fluids.FluidStack fs, int amount) static net.minecraftforge.fluids.FluidStackdeserializeFluidStack(com.google.gson.JsonObject json) static FluidHelper.FluidExchangeexchange(net.minecraftforge.fluids.capability.IFluidHandler fluidTank, net.minecraftforge.fluids.capability.IFluidHandlerItem fluidItem, FluidHelper.FluidExchange preferred, int maxAmount) static FluidHelper.FluidExchangeexchangeAll(net.minecraftforge.fluids.capability.IFluidHandler fluidTank, net.minecraftforge.fluids.capability.IFluidHandlerItem fluidItem, FluidHelper.FluidExchange preferred) static booleanhasBlockState(net.minecraft.world.level.material.Fluid fluid) static booleanisLava(net.minecraft.world.level.material.Fluid fluid) static booleanisWater(net.minecraft.world.level.material.Fluid fluid) static com.google.gson.JsonElementserializeFluidStack(net.minecraftforge.fluids.FluidStack stack) static booleantryEmptyItemIntoTE(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 booleantryFillItemFromTE(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)
-
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)
-