cn.nukkit.item.enchantment.EnchantmentEntry Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of powernukkit Show documentation
Show all versions of powernukkit Show documentation
A Minecraft Bedrock Edition server software implementation made in Java from scratch which supports all new features.
package cn.nukkit.item.enchantment;
/**
* @author Nukkit Project Team
*/
public class EnchantmentEntry {
private final Enchantment[] enchantments;
private final int cost;
private final String randomName;
public EnchantmentEntry(Enchantment[] enchantments, int cost, String randomName) {
this.enchantments = enchantments;
this.cost = cost;
this.randomName = randomName;
}
public Enchantment[] getEnchantments() {
return enchantments;
}
public int getCost() {
return cost;
}
public String getRandomName() {
return randomName;
}
}