Class ExpandFluid

java.lang.Object
com.blamejared.crafttweaker.natives.fluid.ExpandFluid

@ZenRegister public class ExpandFluid extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.world.item.Item
    getBucket(net.minecraft.world.level.material.Fluid internal)
    Gets the bucket item for this fluid.
    static String
    getCommandString(net.minecraft.world.level.material.Fluid internal)
    Gets the command string for this fluid.
    static net.minecraft.resources.ResourceLocation
    getRegistryName(net.minecraft.world.level.material.Fluid internal)
    Gets the registry name of this fluid.
    static boolean
    isIn(net.minecraft.world.level.material.Fluid internal, KnownTag<net.minecraft.world.level.material.Fluid> tag)
    Checks if this fluid is in the given tag.
    static boolean
    isSame(net.minecraft.world.level.material.Fluid internal, net.minecraft.world.level.material.Fluid other)
    Checks if this fluid is the same as another fluid.
    makeStack(net.minecraft.world.level.material.Fluid internal, int amount)
    Creates a new IFluidStack with the given amount of fluid.
    multiply(net.minecraft.world.level.material.Fluid internal, int amount)
    Creates a new IFluidStack with the given amount of fluid.

    Methods inherited from class java.lang.Object

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

    • ExpandFluid

      public ExpandFluid()
  • Method Details

    • multiply

      public static IFluidStack multiply(net.minecraft.world.level.material.Fluid internal, int amount)
      Creates a new IFluidStack with the given amount of fluid.
      Returns:
      a new (immutable) IFluidStack
      DocParam:
      amount 1000
    • makeStack

      public static IFluidStack makeStack(net.minecraft.world.level.material.Fluid internal, int amount)
      Creates a new IFluidStack with the given amount of fluid.
      Returns:
      a new (immutable) IFluidStack
      DocParam:
      amount 1000
    • getBucket

      public static net.minecraft.world.item.Item getBucket(net.minecraft.world.level.material.Fluid internal)
      Gets the bucket item for this fluid.
      Returns:
      The bucket item for this fluid.
    • isSame

      public static boolean isSame(net.minecraft.world.level.material.Fluid internal, net.minecraft.world.level.material.Fluid other)
      Checks if this fluid is the same as another fluid.
      Parameters:
      other - The other fluid to check.
      Returns:
      True if this fluid is the same as the other fluid, false otherwise.
    • isIn

      public static boolean isIn(net.minecraft.world.level.material.Fluid internal, KnownTag<net.minecraft.world.level.material.Fluid> tag)
      Checks if this fluid is in the given tag.
      Parameters:
      tag - The tag to check.
      Returns:
      True if this fluid is in the given tag, false otherwise.
    • getRegistryName

      public static net.minecraft.resources.ResourceLocation getRegistryName(net.minecraft.world.level.material.Fluid internal)
      Gets the registry name of this fluid.
      Returns:
      The registry name of this fluid.
    • getCommandString

      public static String getCommandString(net.minecraft.world.level.material.Fluid internal)
      Gets the command string for this fluid.
      Returns:
      The command string for this fluid.