Package org.spongepowered.api.fluid
Interface FluidState.Builder
-
- All Superinterfaces:
Buildable.Builder<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
public static interface FluidState.Builder extends State.Builder<FluidState,FluidState.Builder>
AnDataHolderBuilder.Immutable
for aFluidState
. Just like theDataHolderBuilder.Immutable
, theDataManipulator
s passed in to create aFluidState
are copied on creation.Note that upon creation, the
FluidType
must be set for validation ofDataManipulator
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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default FluidState.Builder
fluid(Supplier<? extends FluidType> fluidType)
Sets theFluidType
for theFluidState
to build.FluidState.Builder
fluid(FluidType fluidType)
Sets theFluidType
for theFluidState
to build.-
Methods inherited from interface net.kyori.adventure.util.Buildable.Builder
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 Detail
-
fluid
default FluidState.Builder fluid(Supplier<? extends FluidType> fluidType)
Sets theFluidType
for theFluidState
to build.- Parameters:
fluidType
- The fluid type- Returns:
- This builder, for chaining
-
fluid
FluidState.Builder fluid(FluidType fluidType)
Sets theFluidType
for theFluidState
to build.- Parameters:
fluidType
- The fluid type- Returns:
- This builder, for chaining
-
-