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/BundleContentsComponent
intermediary net/minecraft/class_9276
official cxe
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
static final com.mojang.serialization.Codec
<BundleContentsComponent> static final BundleContentsComponent
private static final Fraction
(package private) final Fraction
static final PacketCodec
<RegistryByteBuf, BundleContentsComponent> -
Constructor Summary
ConstructorDescriptionBundleContentsComponent
(List<ItemStack> stacks) BundleContentsComponent
(List<ItemStack> stacks, Fraction occupancy) -
Method Summary
-
Field Details
-
DEFAULT
- Mappings:
Namespace Name Mixin selector named DEFAULT
Lnet/minecraft/component/type/BundleContentsComponent;DEFAULT:Lnet/minecraft/component/type/BundleContentsComponent;
intermediary field_49289
Lnet/minecraft/class_9276;field_49289:Lnet/minecraft/class_9276;
official a
Lcxe;a:Lcxe;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/component/type/BundleContentsComponent;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_49290
Lnet/minecraft/class_9276;field_49290:Lcom/mojang/serialization/Codec;
official b
Lcxe;b:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODEC
Lnet/minecraft/component/type/BundleContentsComponent;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
intermediary field_49291
Lnet/minecraft/class_9276;field_49291:Lnet/minecraft/class_9139;
official c
Lcxe;c:Lzn;
-
NESTED_BUNDLE_OCCUPANCY
- Mappings:
Namespace Name Mixin selector named NESTED_BUNDLE_OCCUPANCY
Lnet/minecraft/component/type/BundleContentsComponent;NESTED_BUNDLE_OCCUPANCY:Lorg/apache/commons/lang3/math/Fraction;
intermediary field_49292
Lnet/minecraft/class_9276;field_49292:Lorg/apache/commons/lang3/math/Fraction;
official d
Lcxe;d:Lorg/apache/commons/lang3/math/Fraction;
-
ADD_TO_NEW_SLOT
private static final int ADD_TO_NEW_SLOT- See Also:
- Mappings:
Namespace Name Mixin selector named ADD_TO_NEW_SLOT
Lnet/minecraft/component/type/BundleContentsComponent;ADD_TO_NEW_SLOT:I
intermediary field_49293
Lnet/minecraft/class_9276;field_49293:I
official e
Lcxe;e:I
-
stacks
- Mappings:
Namespace Name Mixin selector named stacks
Lnet/minecraft/component/type/BundleContentsComponent;stacks:Ljava/util/List;
intermediary field_49294
Lnet/minecraft/class_9276;field_49294:Ljava/util/List;
official f
Lcxe;f:Ljava/util/List;
-
occupancy
- Mappings:
Namespace Name Mixin selector named occupancy
Lnet/minecraft/component/type/BundleContentsComponent;occupancy:Lorg/apache/commons/lang3/math/Fraction;
intermediary field_49295
Lnet/minecraft/class_9276;field_49295:Lorg/apache/commons/lang3/math/Fraction;
official g
Lcxe;g:Lorg/apache/commons/lang3/math/Fraction;
-
-
Constructor Details
-
BundleContentsComponent
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/component/type/BundleContentsComponent;<init>(Ljava/util/List;Lorg/apache/commons/lang3/math/Fraction;)V
intermediary <init>
Lnet/minecraft/class_9276;<init>(Ljava/util/List;Lorg/apache/commons/lang3/math/Fraction;)V
official <init>
Lcxe;<init>(Ljava/util/List;Lorg/apache/commons/lang3/math/Fraction;)V
-
BundleContentsComponent
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/component/type/BundleContentsComponent;<init>(Ljava/util/List;)V
intermediary <init>
Lnet/minecraft/class_9276;<init>(Ljava/util/List;)V
official <init>
Lcxe;<init>(Ljava/util/List;)V
-
-
Method Details
-
calculateOccupancy
- Mappings:
Namespace Name Mixin selector named calculateOccupancy
Lnet/minecraft/component/type/BundleContentsComponent;calculateOccupancy(Ljava/util/List;)Lorg/apache/commons/lang3/math/Fraction;
intermediary method_57425
Lnet/minecraft/class_9276;method_57425(Ljava/util/List;)Lorg/apache/commons/lang3/math/Fraction;
official a
Lcxe;a(Ljava/util/List;)Lorg/apache/commons/lang3/math/Fraction;
-
getOccupancy
- Mappings:
Namespace Name Mixin selector named getOccupancy
Lnet/minecraft/component/type/BundleContentsComponent;getOccupancy(Lnet/minecraft/item/ItemStack;)Lorg/apache/commons/lang3/math/Fraction;
intermediary method_57423
Lnet/minecraft/class_9276;method_57423(Lnet/minecraft/class_1799;)Lorg/apache/commons/lang3/math/Fraction;
official a
Lcxe;a(Lcur;)Lorg/apache/commons/lang3/math/Fraction;
-
get
- Mappings:
Namespace Name Mixin selector named get
Lnet/minecraft/component/type/BundleContentsComponent;get(I)Lnet/minecraft/item/ItemStack;
intermediary method_57422
Lnet/minecraft/class_9276;method_57422(I)Lnet/minecraft/class_1799;
official a
Lcxe;a(I)Lcur;
-
stream
- Mappings:
Namespace Name Mixin selector named stream
Lnet/minecraft/component/type/BundleContentsComponent;stream()Ljava/util/stream/Stream;
intermediary method_59707
Lnet/minecraft/class_9276;method_59707()Ljava/util/stream/Stream;
official a
Lcxe;a()Ljava/util/stream/Stream;
-
iterate
- Mappings:
Namespace Name Mixin selector named iterate
Lnet/minecraft/component/type/BundleContentsComponent;iterate()Ljava/lang/Iterable;
intermediary method_57421
Lnet/minecraft/class_9276;method_57421()Ljava/lang/Iterable;
official b
Lcxe;b()Ljava/lang/Iterable;
-
iterateCopy
- Mappings:
Namespace Name Mixin selector named iterateCopy
Lnet/minecraft/component/type/BundleContentsComponent;iterateCopy()Ljava/lang/Iterable;
intermediary method_59708
Lnet/minecraft/class_9276;method_59708()Ljava/lang/Iterable;
official c
Lcxe;c()Ljava/lang/Iterable;
-
size
public int size()- Mappings:
Namespace Name Mixin selector named size
Lnet/minecraft/component/type/BundleContentsComponent;size()I
intermediary method_57426
Lnet/minecraft/class_9276;method_57426()I
official d
Lcxe;d()I
-
getOccupancy
- Mappings:
Namespace Name Mixin selector named getOccupancy
Lnet/minecraft/component/type/BundleContentsComponent;getOccupancy()Lorg/apache/commons/lang3/math/Fraction;
intermediary method_57428
Lnet/minecraft/class_9276;method_57428()Lorg/apache/commons/lang3/math/Fraction;
official e
Lcxe;e()Lorg/apache/commons/lang3/math/Fraction;
-
isEmpty
public boolean isEmpty()- Mappings:
Namespace Name Mixin selector named isEmpty
Lnet/minecraft/component/type/BundleContentsComponent;isEmpty()Z
intermediary method_57429
Lnet/minecraft/class_9276;method_57429()Z
official f
Lcxe;f()Z
-
equals
-
hashCode
public int hashCode() -
toString
-