<commit_before>package net.nunnerycode.bukkit.mythicdrops.items;

import java.util.List;
import java.util.Map;
import net.nunnerycode.bukkit.mythicdrops.api.items.CustomItem;
import org.bukkit.enchantments.Enchantment;
import org.bukkit.inventory.ItemStack;
import org.bukkit.material.MaterialData;

public final class MythicCustomItem implements CustomItem {

	private final String name;
	private double chanceToBeGivenToAMonster;
	private double chanceToDropOnDeath;
	private String displayName;
	private Map<Enchantment, Integer> enchantments;
	private List<String> lore;
	private MaterialData materialData;

	public MythicCustomItem(String name) {
		this.name = name;
	}

	@Override
	public double getChanceToBeGivenToAMonster() {
		return chanceToBeGivenToAMonster;
	}

	@Override
	public double getChanceToDropOnDeath() {
		return chanceToDropOnDeath;
	}

	void setChanceToDropOnDeath(double chanceToDropOnDeath) {
		this.chanceToDropOnDeath = chanceToDropOnDeath;
	}

	@Override
	public String getName() {
		return name;
	}

	@Override
	public String getDisplayName() {
		return displayName;
	}

	@Override
	public Map<Enchantment, Integer> getEnchantments() {
		return enchantments;
	}

	@Override
	public List<String> getLore() {
		return lore;
	}

	@Override
	public MaterialData getMaterialData() {
		return materialData;
	}

	void setMaterialData(MaterialData materialData) {
		this.materialData = materialData;
	}

	/**
	 * Converts the CustomItem to an {@link org.bukkit.inventory.ItemStack}.
	 *
	 * @return CustomItem as an ItemStack
	 */
	@Override
	public ItemStack toItemStack() {
		return null;
	}

	void setLore(List<String> lore) {
		this.lore = lore;
	}

	void setEnchantments(Map<Enchantment, Integer> enchantments) {<commit_msg>spawning custom items should work now<commit_after>package net.nunnerycode.bukkit.mythicdrops.items;

import net.nunnerycode.bukkit.mythicdrops.api.items.CustomItem;
import net.nunnerycode.bukkit.mythicdrops.api.items.MythicItemStack;
import org.bukkit.enchantments.Enchantment;
import org.bukkit.inventory.ItemStack;
import org.bukkit.material.MaterialData;

import java.util.List;
import java.util.Map;

public final class MythicCustomItem implements CustomItem {

	private final String name;
	private double chanceToBeGivenToAMonster;
	private double chanceToDropOnDeath;
	private String displayName;
	private Map<Enchantment, Integer> enchantments;
	private List<String> lore;
	private MaterialData materialData;

	public MythicCustomItem(String name) {
		this.name = name;
	}

	@Override
	public double getChanceToBeGivenToAMonster() {
		return chanceToBeGivenToAMonster;
	}

	@Override
	public double getChanceToDropOnDeath() {
		return chanceToDropOnDeath;
	}

	void setChanceToDropOnDeath(double chanceToDropOnDeath) {
		this.chanceToDropOnDeath = chanceToDropOnDeath;
	}

	@Override
	public String getName() {
		return name;
	}

	@Override
	public String getDisplayName() {
		return displayName;
	}

	@Override
	public Map<Enchantment, Integer> getEnchantments() {
		return enchantments;
	}

	@Override
	public List<String> getLore() {
		return lore;
	}

	@Override
	public MaterialData getMaterialData() {
		return materialData;
	}

	void setMaterialData(MaterialData materialData) {
		this.materialData = materialData;
	}

	/**
	 * Converts the CustomItem to an {@link org.bukkit.inventory.ItemStack}.
	 *
	 * @return CustomItem as an ItemStack
	 */
	@Override
	public ItemStack toItemStack() {
		return new MythicItemStack(materialData.getItemType(), 1, (short) 0, displayName, lore, enchantments);
	}

	void setLore(List<String> lore) {
		this.lore = lore;
	}

	void setEnchantments(Map<Enchantment, Integer> enchantments) {
{'fraction_non_alphanumeric': 0.08699186991869919, 'fraction_numerical': 0.0005420054200542005, 'mean_word_length': 5.2453468697123515, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2148398', 'n_tokens_mistral': 1319, 'n_tokens_neox': 1218, 'n_words': 270}