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 dez
  • 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 Ldez;a:Ldez;
    • 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 Ldez;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 Ldez;c:Lzm;
    • 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 Ldez;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> Ldez;<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 Ldez;a(Ldcv;)Ldez;
    • 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 Ldez;a(Ljava/util/List;)Ldez;
    • 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 Ldez;a(Ldcr;)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 Ldez;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 Ldez;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 Ldez;equals(Ljava/lang/Object;)Z
    • hashCode

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

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

      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 Ldga;a(Ldcr$b;Ljava/util/function/Consumer;Ldek;Lkl;)V
    • appendProjectileTooltip

      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 Ldez;a(Ldcr$b;Ljava/util/function/Consumer;Ldcv;I)V