Package com.plotsquared.core.components
Class ComponentPresetManager
java.lang.Object
com.plotsquared.core.components.ComponentPresetManager
-
Constructor Summary
ConstructorDescriptionComponentPresetManager(@NonNull EconHandler econHandler, @NonNull InventoryUtil inventoryUtil)
-
Method Summary
Modifier and TypeMethodDescription@Nullable PlotInventory
buildInventory(PlotPlayer<?> player)
Build the component inventory for a player.
-
Constructor Details
-
ComponentPresetManager
@Inject public ComponentPresetManager(@NonNull EconHandler econHandler, @NonNull InventoryUtil inventoryUtil) throws IOException- Throws:
IOException
-
-
Method Details
-
buildInventory
Build the component inventory for a player. This also checks if the player is in a compatible plot, and sends appropriate error messages if not- Parameters:
player
- player- Returns:
- Build inventory, if it could be created
-