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.neoforged.neoforge.fluids.FluidStackcopyStackWithAmount(net.neoforged.neoforge.fluids.FluidStack fs, int amount) static @Nullable FluidHelper.FluidExchangeexchange(net.neoforged.neoforge.fluids.capability.IFluidHandler fluidTank, net.neoforged.neoforge.fluids.capability.IFluidHandlerItem fluidItem, FluidHelper.FluidExchange preferred, int maxAmount) static @Nullable FluidHelper.FluidExchangeexchangeAll(net.neoforged.neoforge.fluids.capability.IFluidHandler fluidTank, net.neoforged.neoforge.fluids.capability.IFluidHandlerItem fluidItem, FluidHelper.FluidExchange preferred) static net.minecraft.sounds.SoundEventgetEmptySound(net.neoforged.neoforge.fluids.FluidStack fluid) static net.minecraft.sounds.SoundEventgetFillSound(net.neoforged.neoforge.fluids.FluidStack fluid) static booleanhasBlockState(net.minecraft.world.level.material.Fluid fluid) static booleanisLava(net.minecraft.world.level.material.Fluid fluid) static booleanisSame(net.neoforged.neoforge.fluids.FluidStack fluidStack, net.minecraft.world.level.material.Fluid fluid) static booleanisSame(net.neoforged.neoforge.fluids.FluidStack fluidStack, net.neoforged.neoforge.fluids.FluidStack fluidStack2) static booleanisTag(net.minecraft.world.level.material.Fluid fluid, net.minecraft.tags.TagKey<net.minecraft.world.level.material.Fluid> tag) static booleanisTag(net.minecraft.world.level.material.FluidState fluid, net.minecraft.tags.TagKey<net.minecraft.world.level.material.Fluid> tag) static booleanisTag(net.neoforged.neoforge.fluids.FluidStack fluid, net.minecraft.tags.TagKey<net.minecraft.world.level.material.Fluid> tag) static booleanisWater(net.minecraft.world.level.material.Fluid fluid) static booleantryEmptyItemIntoBE(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 booleantryFillItemFromBE(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)
-
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 @Nullable 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 @Nullable FluidHelper.FluidExchange exchangeAll(net.neoforged.neoforge.fluids.capability.IFluidHandler fluidTank, net.neoforged.neoforge.fluids.capability.IFluidHandlerItem fluidItem, FluidHelper.FluidExchange preferred)
-