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 an
ItemType or BlockType,
except for fluids. Normally, the gameplay mechanics of fluids are entirely
dependent on the implementation of a fluid; however, they are representable
as FluidStacks, where a certain amount of a FluidType for
a specified volume "exists" within a Fluid Tank Value.
Normally, Keys.FLUID_TANK_CONTENTS can be either retrieved from
either a BlockState or BlockEntity 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, withoutMethods inherited from interface org.spongepowered.api.registry.DefaultedRegistryValue
asDefaultedReference, findKey, keyMethods inherited from interface org.spongepowered.api.state.StateContainer
defaultState, findStateProperty, stateProperties, validStatesMethods inherited from interface org.spongepowered.api.tag.Taggable
is, registryType, tags