Class NormalFluidKey.NormalFluidKeyBuilder
java.lang.Object
alexiil.mc.lib.attributes.fluid.volume.FluidKey.FluidKeyBuilder
alexiil.mc.lib.attributes.fluid.volume.NormalFluidKey.NormalFluidKeyBuilder
- Enclosing class:
- NormalFluidKey
public static class NormalFluidKey.NormalFluidKeyBuilder extends FluidKey.FluidKeyBuilder
-
Field Summary
Fields Modifier and Type Field Description net.minecraft.fluid.Fluid
fluid
Deprecated. -
Constructor Summary
Constructors Constructor Description NormalFluidKeyBuilder(net.minecraft.fluid.Fluid fluid, net.minecraft.util.Identifier spriteId, net.minecraft.text.Text name)
Deprecated.As the flowing sprite ID is needed as well.NormalFluidKeyBuilder(net.minecraft.fluid.Fluid fluid, net.minecraft.util.Identifier spriteId, net.minecraft.util.Identifier flowingSpriteId, net.minecraft.text.Text name)
-
Method Summary
Modifier and Type Method Description NormalFluidKey.NormalFluidKeyBuilder
addUnit(FluidUnit unit)
Adds the given unit to the set of units used.NormalFluidKey
build()
NormalFluidKey.NormalFluidKeyBuilder
setRenderColor(int renderColor)
NormalFluidKey.NormalFluidKeyBuilder
setUnit(FluidUnit unit)
Methods inherited from class alexiil.mc.lib.attributes.fluid.volume.FluidKey.FluidKeyBuilder
copyFrom, setCohesion, setDensity, setGas, setIdEntry, setLiquid, setLuminosity, setName, setNetherCohesion, setNetherViscosity, setRawFluid, setRegistryEntry, setSprites, setTemperature, setTemperature, setThermalCapacity, setViscosity
-
Field Details
-
fluid
@Deprecated public final net.minecraft.fluid.Fluid fluidDeprecated.
-
-
Constructor Details
-
NormalFluidKeyBuilder
@Deprecated public NormalFluidKeyBuilder(net.minecraft.fluid.Fluid fluid, net.minecraft.util.Identifier spriteId, net.minecraft.text.Text name)Deprecated.As the flowing sprite ID is needed as well. -
NormalFluidKeyBuilder
public NormalFluidKeyBuilder(@Nullable net.minecraft.fluid.Fluid fluid, net.minecraft.util.Identifier spriteId, net.minecraft.util.Identifier flowingSpriteId, net.minecraft.text.Text name)
-
-
Method Details
-
setRenderColor
- Overrides:
setRenderColor
in classFluidKey.FluidKeyBuilder
-
setUnit
- Overrides:
setUnit
in classFluidKey.FluidKeyBuilder
-
addUnit
Description copied from class:FluidKey.FluidKeyBuilder
Adds the given unit to the set of units used.- Overrides:
addUnit
in classFluidKey.FluidKeyBuilder
-
build
-