Interface SlotDisplay
- All Known Implementing Classes:
FluidSlotDisplay, FluidStackSlotDisplay, FluidTagSlotDisplay, SlotDisplay.AnyFuel, SlotDisplay.Composite, SlotDisplay.DyedSlotDemo, SlotDisplay.Empty, SlotDisplay.ItemSlotDisplay, SlotDisplay.ItemStackSlotDisplay, SlotDisplay.OnlyWithComponent, SlotDisplay.SmithingTrimDemoSlotDisplay, SlotDisplay.TagSlotDisplay, SlotDisplay.WithAnyPotion, SlotDisplay.WithRemainder
public interface SlotDisplay
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic final recordstatic final recordstatic classstatic final recordstatic classstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordSlotDisplay.Type<T extends SlotDisplay>static final recordstatic final record -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<SlotDisplay> static final StreamCodec<RegistryFriendlyByteBuf, SlotDisplay> -
Method Summary
Modifier and TypeMethodDescriptionprivate static <T> Stream<T> applyDemoTransformation(ContextMap context, DisplayContentsFactory<T> factory, SlotDisplay firstDisplay, SlotDisplay secondDisplay, BinaryOperator<ItemStack> operation) private static <T> Stream<T> applyDemoTransformation(ContextMap context, DisplayContentsFactory<T> factory, SlotDisplay firstDisplay, SlotDisplay secondDisplay, RandomSource randomSource, BinaryOperator<ItemStack> operation) default booleanisEnabled(FeatureFlagSet enabledFeatures) <T> Stream<T> resolve(ContextMap context, DisplayContentsFactory<T> builder) default ItemStackresolveForFirstStack(ContextMap context) resolveForStacks(ContextMap context) SlotDisplay.Type<? extends SlotDisplay> type()
-
Field Details
-
CODEC
-
STREAM_CODEC
-
-
Method Details
-
resolve
-
type
SlotDisplay.Type<? extends SlotDisplay> type() -
isEnabled
-
resolveForStacks
-
resolveForFirstStack
-
applyDemoTransformation
private static <T> Stream<T> applyDemoTransformation(ContextMap context, DisplayContentsFactory<T> factory, SlotDisplay firstDisplay, SlotDisplay secondDisplay, RandomSource randomSource, BinaryOperator<ItemStack> operation) -
applyDemoTransformation
private static <T> Stream<T> applyDemoTransformation(ContextMap context, DisplayContentsFactory<T> factory, SlotDisplay firstDisplay, SlotDisplay secondDisplay, BinaryOperator<ItemStack> operation)
-