Interface FluidType

All Superinterfaces:
DataHolder, DataHolder.Immutable<FluidType>, DefaultedRegistryValue, StateContainer<FluidState>, Taggable<FluidType>, ValueContainer

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.