Class ChargedProjectilesComponent

java.lang.Object
net.minecraft.component.type.ChargedProjectilesComponent
All Implemented Interfaces:
TooltipAppender

public final class ChargedProjectilesComponent extends Object implements TooltipAppender
Mappings:
Namespace Name
named net/minecraft/component/type/ChargedProjectilesComponent
intermediary net/minecraft/class_9278
official dco
  • Field Details Link icon

    • DEFAULT Link icon

      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 Ldco;a:Ldco;
    • CODEC Link icon

      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 Ldco;b:Lcom/mojang/serialization/Codec;
    • PACKET_CODEC Link icon

      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 Ldco;c:Lze;
    • projectiles Link icon

      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 Ldco;d:Ljava/util/List;
  • Constructor Details Link icon

    • ChargedProjectilesComponent Link icon

      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> Ldco;<init>(Ljava/util/List;)V
  • Method Details Link icon

    • of Link icon

      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 Ldco;a(Ldak;)Ldco;
    • of Link icon

      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 Ldco;a(Ljava/util/List;)Ldco;
    • contains Link icon

      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 Ldco;a(Ldag;)Z
    • getProjectiles Link icon

      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 Ldco;a()Ljava/util/List;
    • isEmpty Link icon

      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 Ldco;b()Z
    • equals Link icon

      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 Ldco;equals(Ljava/lang/Object;)Z
    • hashCode Link icon

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

      public String toString()
      Overrides:
      toString in class Object
    • appendTooltip Link icon

      public void appendTooltip(Item.TooltipContext context, Consumer<Text> textConsumer, TooltipType type, ComponentsAccess components)
      Specified by:
      appendTooltip in interface TooltipAppender
      Mappings:
      Namespace Name Mixin selector
      named appendTooltip Lnet/minecraft/item/tooltip/TooltipAppender;appendTooltip(Lnet/minecraft/item/Item$TooltipContext;Ljava/util/function/Consumer;Lnet/minecraft/item/tooltip/TooltipType;Lnet/minecraft/component/ComponentsAccess;)V
      intermediary method_57409 Lnet/minecraft/class_9299;method_57409(Lnet/minecraft/class_1792$class_9635;Ljava/util/function/Consumer;Lnet/minecraft/class_1836;Lnet/minecraft/class_9473;)V
      official a Lddp;a(Ldag$b;Ljava/util/function/Consumer;Ldbz;Lkg;)V
    • appendProjectileTooltip Link icon

      private static void appendProjectileTooltip(Item.TooltipContext context, Consumer<Text> textConsumer, ItemStack projectile, int count)
      Mappings:
      Namespace Name Mixin selector
      named appendProjectileTooltip Lnet/minecraft/component/type/ChargedProjectilesComponent;appendProjectileTooltip(Lnet/minecraft/item/Item$TooltipContext;Ljava/util/function/Consumer;Lnet/minecraft/item/ItemStack;I)V
      intermediary method_67535 Lnet/minecraft/class_9278;method_67535(Lnet/minecraft/class_1792$class_9635;Ljava/util/function/Consumer;Lnet/minecraft/class_1799;I)V
      official a Ldco;a(Ldag$b;Ljava/util/function/Consumer;Ldak;I)V