Class ChargedProjectilesComponent

java.lang.Object
net.minecraft.component.type.ChargedProjectilesComponent

public final class ChargedProjectilesComponent extends Object
Mappings:
Namespace Name
named net/minecraft/component/type/ChargedProjectilesComponent
intermediary net/minecraft/class_9278
official cxe
  • Field Details

    • DEFAULT

      public static final ChargedProjectilesComponent DEFAULT
      Mappings:
      Namespace Name Mixin selector
      named DEFAULT Lnet/minecraft/component/type/ChargedProjectilesComponent;DEFAULT:Lnet/minecraft/component/type/ChargedProjectilesComponent;
      intermediary field_49298 Lnet/minecraft/class_9278;field_49298:Lnet/minecraft/class_9278;
      official a Lcxe;a:Lcxe;
    • CODEC

      public static final com.mojang.serialization.Codec<ChargedProjectilesComponent> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/component/type/ChargedProjectilesComponent;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_49299 Lnet/minecraft/class_9278;field_49299:Lcom/mojang/serialization/Codec;
      official b Lcxe;b:Lcom/mojang/serialization/Codec;
    • PACKET_CODEC

      public static final PacketCodec<RegistryByteBuf,ChargedProjectilesComponent> PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      named PACKET_CODEC Lnet/minecraft/component/type/ChargedProjectilesComponent;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_49300 Lnet/minecraft/class_9278;field_49300:Lnet/minecraft/class_9139;
      official c Lcxe;c:Lzn;
    • projectiles

      private final List<ItemStack> projectiles
      Mappings:
      Namespace Name Mixin selector
      named projectiles Lnet/minecraft/component/type/ChargedProjectilesComponent;projectiles:Ljava/util/List;
      intermediary field_49301 Lnet/minecraft/class_9278;field_49301:Ljava/util/List;
      official d Lcxe;d:Ljava/util/List;
  • Constructor Details

    • ChargedProjectilesComponent

      private ChargedProjectilesComponent(List<ItemStack> projectiles)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/component/type/ChargedProjectilesComponent;<init>(Ljava/util/List;)V
      intermediary <init> Lnet/minecraft/class_9278;<init>(Ljava/util/List;)V
      official <init> Lcxe;<init>(Ljava/util/List;)V
  • Method Details

    • of

      public static ChargedProjectilesComponent of(ItemStack projectile)
      Mappings:
      Namespace Name Mixin selector
      named of Lnet/minecraft/component/type/ChargedProjectilesComponent;of(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/component/type/ChargedProjectilesComponent;
      intermediary method_57439 Lnet/minecraft/class_9278;method_57439(Lnet/minecraft/class_1799;)Lnet/minecraft/class_9278;
      official a Lcxe;a(Lcuq;)Lcxe;
    • of

      public static ChargedProjectilesComponent of(List<ItemStack> projectiles)
      Mappings:
      Namespace Name Mixin selector
      named of Lnet/minecraft/component/type/ChargedProjectilesComponent;of(Ljava/util/List;)Lnet/minecraft/component/type/ChargedProjectilesComponent;
      intermediary method_57441 Lnet/minecraft/class_9278;method_57441(Ljava/util/List;)Lnet/minecraft/class_9278;
      official a Lcxe;a(Ljava/util/List;)Lcxe;
    • contains

      public boolean contains(Item item)
      Mappings:
      Namespace Name Mixin selector
      named contains Lnet/minecraft/component/type/ChargedProjectilesComponent;contains(Lnet/minecraft/item/Item;)Z
      intermediary method_57438 Lnet/minecraft/class_9278;method_57438(Lnet/minecraft/class_1792;)Z
      official a Lcxe;a(Lcul;)Z
    • getProjectiles

      public List<ItemStack> getProjectiles()
      Mappings:
      Namespace Name Mixin selector
      named getProjectiles Lnet/minecraft/component/type/ChargedProjectilesComponent;getProjectiles()Ljava/util/List;
      intermediary method_57437 Lnet/minecraft/class_9278;method_57437()Ljava/util/List;
      official a Lcxe;a()Ljava/util/List;
    • isEmpty

      public boolean isEmpty()
      Mappings:
      Namespace Name Mixin selector
      named isEmpty Lnet/minecraft/component/type/ChargedProjectilesComponent;isEmpty()Z
      intermediary method_57442 Lnet/minecraft/class_9278;method_57442()Z
      official b Lcxe;b()Z
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
      Mappings:
      Namespace Name Mixin selector
      named equals Lnet/minecraft/component/type/ChargedProjectilesComponent;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_9278;equals(Ljava/lang/Object;)Z
      official equals Lcxe;equals(Ljava/lang/Object;)Z
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object