Class ExpandFluid
java.lang.Object
com.blamejared.crafttweaker.natives.fluid.ExpandFluid
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.world.item.ItemgetBucket(net.minecraft.world.level.material.Fluid internal) Gets the bucket item for this fluid.static StringgetCommandString(net.minecraft.world.level.material.Fluid internal) Gets the command string for this fluid.static net.minecraft.resources.ResourceLocationgetRegistryName(net.minecraft.world.level.material.Fluid internal) Gets the registry name of this fluid.static booleanisIn(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 booleanisSame(net.minecraft.world.level.material.Fluid internal, net.minecraft.world.level.material.Fluid other) Checks if this fluid is the same as another fluid.static IFluidStackmakeStack(net.minecraft.world.level.material.Fluid internal, int amount) Creates a newIFluidStackwith the given amount of fluid.static IFluidStackmultiply(net.minecraft.world.level.material.Fluid internal, int amount) Creates a newIFluidStackwith the given amount of fluid.
-
Constructor Details
-
ExpandFluid
public ExpandFluid()
-
-
Method Details
-
multiply
Creates a newIFluidStackwith the given amount of fluid.- Returns:
- a new (immutable)
IFluidStack - DocParam:
- amount 1000
-
makeStack
Creates a newIFluidStackwith 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
Gets the command string for this fluid.- Returns:
- The command string for this fluid.
-