Interface SlotDisplay
- All Superinterfaces:
ComponentHolder<SlotDisplay>
- All Known Implementing Classes:
SlotDisplay.AnyFuel
,SlotDisplay.Composite
,SlotDisplay.Empty
,SlotDisplay.Item
,SlotDisplay.ItemStack
,SlotDisplay.SmithingTrim
,SlotDisplay.Tag
,SlotDisplay.WithRemainder
public sealed interface SlotDisplay
extends ComponentHolder<SlotDisplay>
permits SlotDisplay.Empty, SlotDisplay.AnyFuel, SlotDisplay.Item, SlotDisplay.ItemStack, SlotDisplay.Tag, SlotDisplay.SmithingTrim, SlotDisplay.WithRemainder, SlotDisplay.Composite
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
static final record
static final class
static final record
static final record
static final record
static final record
static final record
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault @NotNull Collection
<Component> Gets the components held by this object.default @NotNull SlotDisplay
copyWithOperator
(@NotNull UnaryOperator<Component> operator) Returns a copy of this object.Methods inherited from interface net.minestom.server.adventure.ComponentHolder
visitComponents
-
Field Details
-
NETWORK_TYPE
-
-
Method Details
-
components
Description copied from interface:ComponentHolder
Gets the components held by this object.- Specified by:
components
in interfaceComponentHolder<SlotDisplay>
- Returns:
- the components
-
copyWithOperator
@NotNull default @NotNull SlotDisplay copyWithOperator(@NotNull @NotNull UnaryOperator<Component> operator) Description copied from interface:ComponentHolder
Returns a copy of this object. For each component this object holds, the operator is applied to the copy before returning.- Specified by:
copyWithOperator
in interfaceComponentHolder<SlotDisplay>
- Parameters:
operator
- the operator- Returns:
- the copy
-