Uses of Class
net.minecraft.component.type.ContainerComponent
Package
Description
-
Uses of ContainerComponent in net.minecraft.component
Modifier and TypeFieldDescriptionstatic final ComponentType
<ContainerComponent> DataComponentTypes.CONTAINER
-
Uses of ContainerComponent in net.minecraft.component.type
Modifier and TypeFieldDescriptionstatic final ContainerComponent
ContainerComponent.DEFAULT
An empty container component.Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<ContainerComponent> ContainerComponent.CODEC
static final PacketCodec
<RegistryByteBuf, ContainerComponent> ContainerComponent.PACKET_CODEC
Modifier and TypeMethodDescriptionprivate static ContainerComponent
ContainerComponent.fromSlots
(List<ContainerComponent.Slot> slots) static ContainerComponent
ContainerComponent.fromStacks
(List<ItemStack> stacks) Creates a container component from a list of item stacks. -
Uses of ContainerComponent in net.minecraft.loot
Modifier and TypeFieldDescriptionstatic final ContainerComponentModifier
<ContainerComponent> ContainerComponentModifiers.CONTAINER
-
Uses of ContainerComponent in net.minecraft.predicate.item
Modifier and TypeMethodDescriptionboolean
ContainerPredicate.test
(ItemStack itemStack, ContainerComponent containerComponent)