Package org.spongepowered.api.fluid
Interface FluidState.Builder
- All Superinterfaces:
AbstractBuilder<FluidState>
,Builder<FluidState,
,FluidState.Builder> CopyableBuilder<FluidState,
,FluidState.Builder> DataBuilder<FluidState>
,DataHolderBuilder<FluidState,
,FluidState.Builder> DataHolderBuilder.Immutable<FluidState,
,FluidState.Builder> ResettableBuilder<FluidState,
,FluidState.Builder> SerializableDataHolderBuilder<FluidState,
,FluidState.Builder> SerializableDataHolderBuilder.Immutable<FluidState,
,FluidState.Builder> State.Builder<FluidState,
FluidState.Builder>
- Enclosing interface:
- FluidState
An
DataHolderBuilder.Immutable
for a FluidState
. Just like the
DataHolderBuilder.Immutable
, the DataManipulator
s passed in to
create a FluidState
are copied on creation.
Note that upon creation, the FluidType
must be set for validation
of DataManipulator
s, otherwise exceptions may be thrown.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.spongepowered.api.data.DataHolderBuilder
DataHolderBuilder.Immutable<H extends DataHolder.Immutable<H>,
B extends DataHolderBuilder.Immutable<H, B>>, DataHolderBuilder.Mutable<H extends DataHolder.Mutable, B extends DataHolderBuilder.Mutable<H, B>> Nested classes/interfaces inherited from interface org.spongepowered.api.data.SerializableDataHolderBuilder
SerializableDataHolderBuilder.Immutable<H extends SerializableDataHolder.Immutable<H>,
B extends SerializableDataHolderBuilder.Immutable<H, B>>, SerializableDataHolderBuilder.Mutable<H extends SerializableDataHolder.Mutable, B extends SerializableDataHolderBuilder.Mutable<H, B>> -
Method Summary
Modifier and TypeMethodDescriptiondefault FluidState.Builder
Sets theFluidType
for theFluidState
to build.Sets theFluidType
for theFluidState
to build.Methods inherited from interface net.kyori.adventure.builder.AbstractBuilder
build
Methods inherited from interface org.spongepowered.api.data.persistence.DataBuilder
build
Methods inherited from interface org.spongepowered.api.data.DataHolderBuilder
add, add, add, add, add, addFrom, from, reset
Methods inherited from interface org.spongepowered.api.state.State.Builder
fromString
-
Method Details
-
fluid
Sets theFluidType
for theFluidState
to build.- Parameters:
fluidType
- The fluid type- Returns:
- This builder, for chaining
-
fluid
Sets theFluidType
for theFluidState
to build.- Parameters:
fluidType
- The fluid type- Returns:
- This builder, for chaining
-