Interface Inventory.Builder.EndStep
-
- Enclosing interface:
- Inventory.Builder
public static interface Inventory.Builder.EndStep
The end Step. You can set an identifier and/or carrier for the inventory before building it.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Inventory
build()
Builds the inventory.Inventory.Builder.EndStep
carrier(Carrier carrier)
Sets a carrier.Inventory.Builder.EndStep
identity(java.util.UUID uuid)
Sets a unique identifier.Inventory.Builder.EndStep
plugin(org.spongepowered.plugin.PluginContainer plugin)
Sets theplugin
.
-
-
-
Method Detail
-
plugin
Inventory.Builder.EndStep plugin(org.spongepowered.plugin.PluginContainer plugin)
Sets theplugin
.- Parameters:
plugin
- The plugin- Returns:
- this step
-
identity
Inventory.Builder.EndStep identity(java.util.UUID uuid)
Sets a unique identifier. Can be retrieved later using.Inventory.get(Key)
withKeys.UNIQUE_ID
- Parameters:
uuid
- the UUID.- Returns:
- this step
-
carrier
Inventory.Builder.EndStep carrier(Carrier carrier)
Sets a carrier.- Parameters:
carrier
- the carrier.- Returns:
- this step
-
build
Inventory build()
Builds the inventory.- Returns:
- the new inventory.
-
-