001package net.tnemc.item.component.impl;
002/*
003 * The New Item Library
004 * Copyright (C) 2022 - 2025 Daniel "creatorfromhell" Vidmar
005 *
006 * This program is free software; you can redistribute it and/or
007 * modify it under the terms of the GNU Lesser General Public
008 * License as published by the Free Software Foundation; either
009 * version 3 of the License, or (at your option) any later version.
010 *
011 * This program is distributed in the hope that it will be useful,
012 * but WITHOUT ANY WARRANTY; without even the implied warranty of
013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
014 * Lesser General Public License for more details.
015 *
016 * You should have received a copy of the GNU Lesser General Public License
017 * along with this program; if not, write to the Free Software Foundation,
018 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
019 */
020
021import net.tnemc.item.AbstractItemStack;
022
023import java.util.Map;
024
025/**
026 * ChargedProjectilesComponent - The items loaded as projectiles into this crossbow. If not present, this crossbow is not charged.
027 *
028 * @author creatorfromhell
029 * @see <a href="https://minecraft.wiki/w/Data_component_format#charged_projectiles">Reference</a>
030 * <p>
031 * @since 0.2.0.0
032 */
033public abstract class ChargedProjectilesComponent<I extends AbstractItemStack<T>, T> extends ContainerComponent<I, T> {
034
035  public ChargedProjectilesComponent() {
036    super();
037  }
038
039  public ChargedProjectilesComponent(final Map<Integer, AbstractItemStack<T>> items) {
040
041    super(items);
042  }
043
044  /**
045   * @return the type of component this is.
046   * @since 0.2.0.0
047   */
048  @Override
049  public String identifier() {
050
051    return "charged_projectiles";
052  }
053}