public class Fluid
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected Block |
block
If there is a Block implementation of the Fluid, the Block is linked here.
|
protected int |
density
Density of the fluid - completely arbitrary; negative density indicates that the fluid is
lighter than air.
|
protected ResourceLocation |
flowing |
protected java.lang.String |
fluidName
The unique identification name for this fluid.
|
protected boolean |
isGaseous
This indicates if the fluid is gaseous.
|
protected int |
luminosity
The light level emitted by this fluid.
|
protected EnumRarity |
rarity
The rarity of the fluid.
|
protected ResourceLocation |
still |
protected int |
temperature
Temperature of the fluid - completely arbitrary; higher temperature indicates that the fluid is
hotter than air.
|
protected java.lang.String |
unlocalizedName
The unlocalized name of this fluid.
|
protected int |
viscosity
Viscosity ("thickness") of the fluid - completely arbitrary; negative values are not
permissible.
|
Constructor and Description |
---|
Fluid(java.lang.String fluidName,
ResourceLocation still,
ResourceLocation flowing) |
protected final java.lang.String fluidName
protected java.lang.String unlocalizedName
protected final ResourceLocation still
protected final ResourceLocation flowing
protected int luminosity
protected int density
protected int temperature
protected int viscosity
protected boolean isGaseous
protected EnumRarity rarity
protected Block block
public Fluid(java.lang.String fluidName, ResourceLocation still, ResourceLocation flowing)
public Fluid setUnlocalizedName(java.lang.String unlocalizedName)
public Fluid setLuminosity(int luminosity)
public Fluid setDensity(int density)
public Fluid setTemperature(int temperature)
public Fluid setViscosity(int viscosity)
public Fluid setGaseous(boolean isGaseous)
public Fluid setRarity(EnumRarity rarity)
public Fluid setFillSound(SoundEvent fillSound)
public Fluid setEmptySound(SoundEvent emptySound)
public final java.lang.String getName()
public final Block getBlock()
public final boolean canBePlacedInWorld()
public java.lang.String getLocalizedName(FluidStack stack)
public java.lang.String getUnlocalizedName(FluidStack stack)
public java.lang.String getUnlocalizedName()
public final int getLuminosity()
public final int getDensity()
public final int getTemperature()
public final int getViscosity()
public final boolean isGaseous()
public EnumRarity getRarity()
public int getColor()
public ResourceLocation getStill()
public ResourceLocation getFlowing()
public SoundEvent getFillSound()
public SoundEvent getEmptySound()
public int getLuminosity(FluidStack stack)
public int getDensity(FluidStack stack)
public int getTemperature(FluidStack stack)
public int getViscosity(FluidStack stack)
public boolean isGaseous(FluidStack stack)
public EnumRarity getRarity(FluidStack stack)
public int getColor(FluidStack stack)
public ResourceLocation getStill(FluidStack stack)
public ResourceLocation getFlowing(FluidStack stack)
public SoundEvent getFillSound(FluidStack stack)
public SoundEvent getEmptySound(FluidStack stack)
public EnumRarity getRarity(World world, BlockPos pos)
public ResourceLocation getStill(World world, BlockPos pos)
public ResourceLocation getFlowing(World world, BlockPos pos)
public SoundEvent getFillSound(World world, BlockPos pos)
public SoundEvent getEmptySound(World world, BlockPos pos)