public interface FluidStack extends DataHolder
FluidType
and
volume measured in "milliBuckets" where 1000
mB is equal to
1 ItemTypes.BUCKET
.Modifier and Type | Interface and Description |
---|---|
static interface |
FluidStack.Builder |
Modifier and Type | Method and Description |
---|---|
static FluidStack.Builder |
builder()
Creates a new
FluidStack.Builder to make fluid stacks. |
FluidStackSnapshot |
createSnapshot()
Creates a snapshot of this
FluidStack . |
FluidType |
getFluid()
Gets the
FluidType for this fluid stack. |
int |
getVolume()
Gets the "volume" of this
FluidStack . |
FluidStack |
setVolume(int volume)
Sets the desired volume for this stack.
|
setRawData, validateRawData
getContentVersion, toContainer
getApplicableProperties, getProperty
static FluidStack.Builder builder()
FluidStack.Builder
to make fluid stacks.FluidType getFluid()
FluidType
for this fluid stack.int getVolume()
FluidStack
.
Note that the volume is measured in "milli buckets", otherwise read
as mB
. The scaling is as follows: 1 bucket = 1000mB, whereas 1
block usually equals 1000mB.
FluidStack setVolume(int volume)
Note that the volume is measured in "milli buckets", otherwise read
as mB
. The scaling is as follows: 1 bucket = 1000mB, whereas 1
block usually equals 1000mB.
volume
- The volume to setFluidStackSnapshot createSnapshot()
FluidStack
.