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
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic final recordstatic final classstatic final recordstatic final recordstatic final recordstatic final recordstatic final record -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault Collection<Component> Gets the components held by this object.default SlotDisplaycopyWithOperator(UnaryOperator<Component> operator) Returns a copy of this object.Methods inherited from interface ComponentHolder
visitComponents
-
Field Details
-
NETWORK_TYPE
-
-
Method Details
-
components
Description copied from interface:ComponentHolderGets the components held by this object.- Specified by:
componentsin interfaceComponentHolder<SlotDisplay>- Returns:
- the components
-
copyWithOperator
Description copied from interface:ComponentHolderReturns a copy of this object. For each component this object holds, the operator is applied to the copy before returning.- Specified by:
copyWithOperatorin interfaceComponentHolder<SlotDisplay>- Parameters:
operator- the operator- Returns:
- the copy
-