Package space.maxus.flare.ui.compose
Interface ContainerSlot.Builder
- All Superinterfaces:
ComposableLike
- Enclosing interface:
- ContainerSlot
Builder for ContainerSlot
-
Method Summary
Modifier and TypeMethodDescriptiondefault ComposableConverts self to a composablebuild()Builds this containerdisabled(boolean disabled) Makes the container disabledempty(@Nullable ItemProvider provider) Sets the empty item provider for this containerSets the put filter for this containerSets the take filter for this containeritem(@Nullable org.bukkit.inventory.ItemStack item) Sets the item inside this containerSets the put handler for this containerSets the take handler for this containerMethods inherited from interface space.maxus.flare.ui.ComposableLike
inside
-
Method Details
-
disabled
Makes the container disabled- Parameters:
disabled- Disabled state- Returns:
- This builder
-
empty
Sets the empty item provider for this container- Parameters:
provider- The empty item provider- Returns:
- This builder
-
item
Sets the item inside this container- Parameters:
item- The item to be set- Returns:
- This builder
-
onPut
Sets the put handler for this container- Parameters:
put- Put handler- Returns:
- This builder
-
onTake
Sets the take handler for this container- Parameters:
take- Take handler- Returns:
- This builder
-
filterPut
Sets the put filter for this container- Parameters:
put- Put filter- Returns:
- This builder
-
filterTake
Sets the take filter for this container- Parameters:
take- Take filter- Returns:
- This builder
-
build
ContainerSlot build()Builds this container- Returns:
- Built container slot
-
asComposable
Description copied from interface:ComposableLikeConverts self to a composable- Specified by:
asComposablein interfaceComposableLike- Returns:
- The composable
-