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)
     
    static String
    getCommandString(net.minecraft.world.level.material.Fluid internal)
     
    static net.minecraft.resources.ResourceLocation
    getRegistryName(net.minecraft.world.level.material.Fluid internal)
     
    static boolean
    isIn(net.minecraft.world.level.material.Fluid internal, KnownTag<net.minecraft.world.level.material.Fluid> tag)
     
    static boolean
    isSame(net.minecraft.world.level.material.Fluid internal, net.minecraft.world.level.material.Fluid other)
     
    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)
    • isSame

      public static boolean isSame(net.minecraft.world.level.material.Fluid internal, net.minecraft.world.level.material.Fluid other)
    • isIn

      public static boolean isIn(net.minecraft.world.level.material.Fluid internal, KnownTag<net.minecraft.world.level.material.Fluid> tag)
    • getRegistryName

      public static net.minecraft.resources.ResourceLocation getRegistryName(net.minecraft.world.level.material.Fluid internal)
    • getCommandString

      public static String getCommandString(net.minecraft.world.level.material.Fluid internal)