Package org.spongepowered.api.fluid
Interface FluidType
-
- All Superinterfaces:
DataHolder
,DataHolder.Immutable<FluidType>
,DefaultedRegistryValue
,StateContainer<FluidState>
,Taggable<FluidType>
,ValueContainer
@CatalogedBy(FluidTypes.class) public interface FluidType extends DefaultedRegistryValue, StateContainer<FluidState>, DataHolder.Immutable<FluidType>, Taggable<FluidType>
The functional equivalent of anItemType
orBlockType
, except for fluids. Normally, the gameplay mechanics of fluids are entirely dependent on the implementation of a fluid; however, they are representable asFluidStack
s, where a certain amount of aFluidType
for a specified volume "exists" within aFluid Tank Value
.Normally,
Keys.FLUID_TANK_CONTENTS
can be either retrieved from either aBlockState
orBlockEntity
that specifically handles fluids. Depending on the implementation, a fluid stack may be used differently than how vanilla implementations handle them.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.spongepowered.api.data.DataHolder
DataHolder.Immutable<I extends DataHolder.Immutable<I>>, DataHolder.Mutable
-
-
Method Summary
-
Methods inherited from interface org.spongepowered.api.data.DataHolder.Immutable
mergeWith, mergeWith, transform, transform, with, with, with, without, without, without
-
Methods inherited from interface org.spongepowered.api.registry.DefaultedRegistryValue
asDefaultedReference, findKey, key
-
Methods inherited from interface org.spongepowered.api.state.StateContainer
defaultState, findStateProperty, stateProperties, validStates
-
-