Package org.spongepowered.api.fluid
Interface FluidStackSnapshot.Builder
-
- All Superinterfaces:
Buildable.Builder<FluidStackSnapshot>
,Builder<FluidStackSnapshot,FluidStackSnapshot.Builder>
,CopyableBuilder<FluidStackSnapshot,FluidStackSnapshot.Builder>
,DataBuilder<FluidStackSnapshot>
,DataHolderBuilder<FluidStackSnapshot,FluidStackSnapshot.Builder>
,DataHolderBuilder.Immutable<FluidStackSnapshot,FluidStackSnapshot.Builder>
,ResettableBuilder<FluidStackSnapshot,FluidStackSnapshot.Builder>
,SerializableDataHolderBuilder<FluidStackSnapshot,FluidStackSnapshot.Builder>
,SerializableDataHolderBuilder.Immutable<FluidStackSnapshot,FluidStackSnapshot.Builder>
- Enclosing interface:
- FluidStackSnapshot
public static interface FluidStackSnapshot.Builder extends SerializableDataHolderBuilder.Immutable<FluidStackSnapshot,FluidStackSnapshot.Builder>
-
-
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 FluidStackSnapshot.Builder
fluid(Supplier<? extends FluidType> fluidType)
FluidStackSnapshot.Builder
fluid(FluidType fluidType)
FluidStackSnapshot.Builder
from(FluidStack fluidStack)
Resets this builder and accepts all data from the incomingFluidStack
.FluidStackSnapshot.Builder
volume(int volume)
-
Methods inherited from interface net.kyori.adventure.util.Buildable.Builder
build
-
Methods inherited from interface org.spongepowered.api.data.persistence.DataBuilder
build
-
-
-
-
Method Detail
-
fluid
default FluidStackSnapshot.Builder fluid(Supplier<? extends FluidType> fluidType)
-
fluid
FluidStackSnapshot.Builder fluid(FluidType fluidType)
-
volume
FluidStackSnapshot.Builder volume(int volume)
-
from
FluidStackSnapshot.Builder from(FluidStack fluidStack)
Resets this builder and accepts all data from the incomingFluidStack
.- Parameters:
fluidStack
- The fluid stack to accept- Returns:
- This builder, for chaining
-
-