net.minecraft.component.type

public record ChargedProjectilesComponent

implements AbstractContainerComponent<ChargedProjectilesComponent>, TooltipAppender

net.minecraft.world.item.component.ChargedProjectiles
net.minecraft.class_9278
net.minecraft.component.type.ChargedProjectilesComponent

Field summary

Modifier and TypeField
private final List<SimpleItemStackView>
items
comp_1_81
projectiles
private static final org.slf4j.Logger
LOGGER
field_1_7148
LOGGER
private static final int
MAX_SIZE
field_1_7127
MAX_SLOTS
public static final ChargedProjectilesComponent
EMPTY
field_49298
DEFAULT
public static final com.mojang.serialization.Codec<ChargedProjectilesComponent>
CODEC
field_49299
CODEC
public static final PacketCodec<RegistryByteBuf, ChargedProjectilesComponent>
STREAM_CODEC
field_49300
PACKET_CODEC

Constructor summary

ModifierConstructor
public (List<SimpleItemStackView> projectiles)

Method summary

Modifier and TypeMethod
public static ChargedProjectilesComponent
of(ItemStackTemplate stack)
method_57439(class_1_107 arg0)
of(SimpleItemStackView stack)
public static ChargedProjectilesComponent
ofNonEmpty(List<ItemStack> items)
method_57441(List<class_1799> arg0)
of(List<ItemStack> projectiles)
public boolean
contains(Item item)
method_57438(class_1792 arg0)
contains(Item item)
public Stream<ItemStack>
itemCopies()
method_59707()
stream()
public int
size()
method_57426()
size()
public boolean
isEmpty()
method_57442()
isEmpty()
public ChargedProjectilesComponent
copyWithContents(Stream<ItemStack> newContents)
method_1_7001(Stream<class_1799> arg0)
fromItemStacks(Stream<ItemStack> arg0)
public ChargedProjectilesComponent$Builder
asMutable()
method_1_7000()
toBuilder()
public void
addToTooltip(Item$TooltipContext context, Consumer<Component> consumer, TooltipFlag flag, DataComponentGetter components)
method_57409(class_1792$class_9635 arg0, Consumer<class_2561> arg1, class_1836 arg2, class_9473 arg3)
appendTooltip(Item$TooltipContext arg0, Consumer<Text> arg1, TooltipType arg2, ComponentsAccess arg3)
private static void
addProjectileTooltip(Item$TooltipContext context, Consumer<Component> consumer, ItemStack projectile, int count)
method_67535(class_1792$class_9635 arg0, Consumer<class_2561> arg1, class_1799 arg2, int arg3)
appendProjectileTooltip(Item$TooltipContext context, Consumer<Text> textConsumer, ItemStack projectile, int count)
public List<SimpleItemStackView>
items()
comp_1_81()
projectiles()
public AbstractContainerComponent$Builder
asMutable()
method_1_7000()
toBuilder()
public AbstractContainerComponent
copyWithContents(Stream newContents)
method_1_7001(Stream arg0)
fromItemStacks(Stream arg0)
private static void
lambda$addProjectileTooltip$0(Consumer arg0, Component arg1)
method_67536(Consumer arg0, class_2561 arg1)
method_67536(Consumer arg0, Text tooltip)
private static boolean
lambda$copyWithContents$0(ItemStack arg0)
method_1_6998(class_1799 arg0)
method_1_6998(ItemStack stack)
private static boolean
lambda$ofNonEmpty$0(ItemStack arg0)
method_1_6399(class_1799 arg0)
method_1_6399(ItemStack stack)
private static List
lambda$static$1(ChargedProjectiles arg0)
method_57440(class_9278 arg0)
method_57440(ChargedProjectilesComponent component)
private static List
lambda$static$0(ChargedProjectiles arg0)
method_57443(class_9278 arg0)
method_57443(ChargedProjectilesComponent component)