Package net.minecraft.component.type
Class BundleContentsComponent
java.lang.Object
net.minecraft.component.type.BundleContentsComponent
- All Implemented Interfaces:
TooltipData
- Mappings:
Namespace Name named net/minecraft/component/type/BundleContentsComponentintermediary net/minecraft/class_9276official cwb
-
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 named MAX_SIZELnet/minecraft/component/type/BundleContentsComponent;MAX_SIZE:Iintermediary field_49288Lnet/minecraft/class_9276;field_49288:Iofficial aLcwb;a:I
-
DEFAULT
- Mappings:
Namespace Name Mixin selector named DEFAULTLnet/minecraft/component/type/BundleContentsComponent;DEFAULT:Lnet/minecraft/component/type/BundleContentsComponent;intermediary field_49289Lnet/minecraft/class_9276;field_49289:Lnet/minecraft/class_9276;official bLcwb;b:Lcwb;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/component/type/BundleContentsComponent;CODEC:Lcom/mojang/serialization/Codec;intermediary field_49290Lnet/minecraft/class_9276;field_49290:Lcom/mojang/serialization/Codec;official cLcwb;c:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/component/type/BundleContentsComponent;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_49291Lnet/minecraft/class_9276;field_49291:Lnet/minecraft/class_9139;official dLcwb;d:Lyv;
-
NESTED_BUNDLE_OCCUPANCY
private static final int NESTED_BUNDLE_OCCUPANCY- See Also:
- Mappings:
Namespace Name Mixin selector named NESTED_BUNDLE_OCCUPANCYLnet/minecraft/component/type/BundleContentsComponent;NESTED_BUNDLE_OCCUPANCY:Iintermediary field_49292Lnet/minecraft/class_9276;field_49292:Iofficial eLcwb;e:I
-
ADD_TO_NEW_SLOT
private static final int ADD_TO_NEW_SLOT- See Also:
- Mappings:
Namespace Name Mixin selector named ADD_TO_NEW_SLOTLnet/minecraft/component/type/BundleContentsComponent;ADD_TO_NEW_SLOT:Iintermediary field_49293Lnet/minecraft/class_9276;field_49293:Iofficial fLcwb;f:I
-
stacks
- Mappings:
Namespace Name Mixin selector named stacksLnet/minecraft/component/type/BundleContentsComponent;stacks:Ljava/util/List;intermediary field_49294Lnet/minecraft/class_9276;field_49294:Ljava/util/List;official gLcwb;g:Ljava/util/List;
-
occupancy
final int occupancy- Mappings:
Namespace Name Mixin selector named occupancyLnet/minecraft/component/type/BundleContentsComponent;occupancy:Iintermediary field_49295Lnet/minecraft/class_9276;field_49295:Iofficial hLcwb;h:I
-
-
Constructor Details
-
BundleContentsComponent
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/component/type/BundleContentsComponent;<init>(Ljava/util/List;I)Vintermediary <init>Lnet/minecraft/class_9276;<init>(Ljava/util/List;I)Vofficial <init>Lcwb;<init>(Ljava/util/List;I)V
-
BundleContentsComponent
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/component/type/BundleContentsComponent;<init>(Ljava/util/List;)Vintermediary <init>Lnet/minecraft/class_9276;<init>(Ljava/util/List;)Vofficial <init>Lcwb;<init>(Ljava/util/List;)V
-
-
Method Details
-
calculateOccupancy
- Mappings:
Namespace Name Mixin selector named calculateOccupancyLnet/minecraft/component/type/BundleContentsComponent;calculateOccupancy(Ljava/util/List;)Iintermediary method_57425Lnet/minecraft/class_9276;method_57425(Ljava/util/List;)Iofficial aLcwb;a(Ljava/util/List;)I
-
getOccupancy
- Mappings:
Namespace Name Mixin selector named getOccupancyLnet/minecraft/component/type/BundleContentsComponent;getOccupancy(Lnet/minecraft/item/ItemStack;)Iintermediary method_57423Lnet/minecraft/class_9276;method_57423(Lnet/minecraft/class_1799;)Iofficial aLcwb;a(Lcto;)I
-
get
- Mappings:
Namespace Name Mixin selector named getLnet/minecraft/component/type/BundleContentsComponent;get(I)Lnet/minecraft/item/ItemStack;intermediary method_57422Lnet/minecraft/class_9276;method_57422(I)Lnet/minecraft/class_1799;official aLcwb;a(I)Lcto;
-
stream
- Mappings:
Namespace Name Mixin selector named streamLnet/minecraft/component/type/BundleContentsComponent;stream()Ljava/util/stream/Stream;intermediary method_57421Lnet/minecraft/class_9276;method_57421()Ljava/util/stream/Stream;official aLcwb;a()Ljava/util/stream/Stream;
-
size
public int size()- Mappings:
Namespace Name Mixin selector named sizeLnet/minecraft/component/type/BundleContentsComponent;size()Iintermediary method_57426Lnet/minecraft/class_9276;method_57426()Iofficial bLcwb;b()I
-
getOccupancy
public int getOccupancy()- Mappings:
Namespace Name Mixin selector named getOccupancyLnet/minecraft/component/type/BundleContentsComponent;getOccupancy()Iintermediary method_57428Lnet/minecraft/class_9276;method_57428()Iofficial cLcwb;c()I
-
isEmpty
public boolean isEmpty()- Mappings:
Namespace Name Mixin selector named isEmptyLnet/minecraft/component/type/BundleContentsComponent;isEmpty()Zintermediary method_57429Lnet/minecraft/class_9276;method_57429()Zofficial dLcwb;d()Z
-
equals
-
hashCode
public int hashCode() -
toString
-