Package net.minecraft.component.type
Class BundleContentsComponent
java.lang.Object
net.minecraft.component.type.BundleContentsComponent
- All Implemented Interfaces:
TooltipData
- Mappings:
Namespace Name official cuaintermediary net/minecraft/class_9276named net/minecraft/component/type/BundleContentsComponent
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intstatic final com.mojang.serialization.Codec<BundleContentsComponent> static final BundleContentsComponentstatic final intprivate static final int(package private) final intstatic final PacketCodec<RegistryByteBuf, BundleContentsComponent> -
Constructor Summary
ConstructorsConstructorDescriptionBundleContentsComponent(List<ItemStack> stacks) BundleContentsComponent(List<ItemStack> stacks, int occupancy) -
Method Summary
-
Field Details
-
MAX_SIZE
public static final int MAX_SIZE- See Also:
- Mappings:
Namespace Name Mixin selector official aLcua;a:Iintermediary field_49288Lnet/minecraft/class_9276;field_49288:Inamed MAX_SIZELnet/minecraft/component/type/BundleContentsComponent;MAX_SIZE:I
-
DEFAULT
- Mappings:
Namespace Name Mixin selector official bLcua;b:Lcua;intermediary field_49289Lnet/minecraft/class_9276;field_49289:Lnet/minecraft/class_9276;named DEFAULTLnet/minecraft/component/type/BundleContentsComponent;DEFAULT:Lnet/minecraft/component/type/BundleContentsComponent;
-
CODEC
- Mappings:
Namespace Name Mixin selector official cLcua;c:Lcom/mojang/serialization/Codec;intermediary field_49290Lnet/minecraft/class_9276;field_49290:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/component/type/BundleContentsComponent;CODEC:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector official dLcua;d:Lyg;intermediary field_49291Lnet/minecraft/class_9276;field_49291:Lnet/minecraft/class_9139;named PACKET_CODECLnet/minecraft/component/type/BundleContentsComponent;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
-
NESTED_BUNDLE_OCCUPANCY
private static final int NESTED_BUNDLE_OCCUPANCY- See Also:
- Mappings:
Namespace Name Mixin selector official eLcua;e:Iintermediary field_49292Lnet/minecraft/class_9276;field_49292:Inamed NESTED_BUNDLE_OCCUPANCYLnet/minecraft/component/type/BundleContentsComponent;NESTED_BUNDLE_OCCUPANCY:I
-
ADD_TO_NEW_SLOT
private static final int ADD_TO_NEW_SLOT- See Also:
- Mappings:
Namespace Name Mixin selector official fLcua;f:Iintermediary field_49293Lnet/minecraft/class_9276;field_49293:Inamed ADD_TO_NEW_SLOTLnet/minecraft/component/type/BundleContentsComponent;ADD_TO_NEW_SLOT:I
-
stacks
- Mappings:
Namespace Name Mixin selector official gLcua;g:Ljava/util/List;intermediary field_49294Lnet/minecraft/class_9276;field_49294:Ljava/util/List;named stacksLnet/minecraft/component/type/BundleContentsComponent;stacks:Ljava/util/List;
-
occupancy
final int occupancy- Mappings:
Namespace Name Mixin selector official hLcua;h:Iintermediary field_49295Lnet/minecraft/class_9276;field_49295:Inamed occupancyLnet/minecraft/component/type/BundleContentsComponent;occupancy:I
-
-
Constructor Details
-
BundleContentsComponent
- Mappings:
Namespace Name Mixin selector official <init>Lcua;<init>(Ljava/util/List;I)Vintermediary <init>Lnet/minecraft/class_9276;<init>(Ljava/util/List;I)Vnamed <init>Lnet/minecraft/component/type/BundleContentsComponent;<init>(Ljava/util/List;I)V
-
BundleContentsComponent
- Mappings:
Namespace Name Mixin selector official <init>Lcua;<init>(Ljava/util/List;)Vintermediary <init>Lnet/minecraft/class_9276;<init>(Ljava/util/List;)Vnamed <init>Lnet/minecraft/component/type/BundleContentsComponent;<init>(Ljava/util/List;)V
-
-
Method Details
-
calculateOccupancy
- Mappings:
Namespace Name Mixin selector official aLcua;a(Ljava/util/List;)Iintermediary method_57425Lnet/minecraft/class_9276;method_57425(Ljava/util/List;)Inamed calculateOccupancyLnet/minecraft/component/type/BundleContentsComponent;calculateOccupancy(Ljava/util/List;)I
-
getOccupancy
- Mappings:
Namespace Name Mixin selector official aLcua;a(Lcrs;)Iintermediary method_57423Lnet/minecraft/class_9276;method_57423(Lnet/minecraft/class_1799;)Inamed getOccupancyLnet/minecraft/component/type/BundleContentsComponent;getOccupancy(Lnet/minecraft/item/ItemStack;)I
-
get
- Mappings:
Namespace Name Mixin selector official aLcua;a(I)Lcrs;intermediary method_57422Lnet/minecraft/class_9276;method_57422(I)Lnet/minecraft/class_1799;named getLnet/minecraft/component/type/BundleContentsComponent;get(I)Lnet/minecraft/item/ItemStack;
-
stream
- Mappings:
Namespace Name Mixin selector official aLcua;a()Ljava/util/stream/Stream;intermediary method_57421Lnet/minecraft/class_9276;method_57421()Ljava/util/stream/Stream;named streamLnet/minecraft/component/type/BundleContentsComponent;stream()Ljava/util/stream/Stream;
-
size
public int size()- Mappings:
Namespace Name Mixin selector official bLcua;b()Iintermediary method_57426Lnet/minecraft/class_9276;method_57426()Inamed sizeLnet/minecraft/component/type/BundleContentsComponent;size()I
-
getOccupancy
public int getOccupancy()- Mappings:
Namespace Name Mixin selector official cLcua;c()Iintermediary method_57428Lnet/minecraft/class_9276;method_57428()Inamed getOccupancyLnet/minecraft/component/type/BundleContentsComponent;getOccupancy()I
-
isEmpty
public boolean isEmpty()- Mappings:
Namespace Name Mixin selector official dLcua;d()Zintermediary method_57429Lnet/minecraft/class_9276;method_57429()Znamed isEmptyLnet/minecraft/component/type/BundleContentsComponent;isEmpty()Z
-
equals
-
hashCode
public int hashCode() -
toString
-