blob: 5074ee6e069dc5ee0d4ec2240eb1c73352ca98bf [file] [log] [blame] [raw]
package com.legacy.aether.server.registry;
import java.util.ArrayList;
import java.util.List;
import com.legacy.aether.server.registry.objects.AetherEnchantment;
import com.legacy.aether.server.registry.objects.AetherFreezable;
import net.minecraft.item.ItemStack;
public class AetherRegistry
{
private static List<AetherEnchantment> enchantables = new ArrayList<AetherEnchantment>();
private static List<AetherFreezable> freezables = new ArrayList<AetherFreezable>();
public static void registerEnchantment(ItemStack from, ItemStack to, int enchantmentTime)
{
enchantables.add(new AetherEnchantment(from, to, enchantmentTime));
}
public static void registerFreezable(ItemStack from, ItemStack to, int freezerTime)
{
freezables.add(new AetherFreezable(from, to, freezerTime));
}
public static AetherEnchantment getEnchantment(int enchantmentID)
{
return enchantables.get(enchantmentID);
}
public static AetherFreezable getFreezable(int freezableID)
{
return freezables.get(freezableID);
}
public static List<AetherEnchantment> getEnchantables()
{
return enchantables;
}
public static List<AetherFreezable> getFreezables()
{
return freezables;
}
public static int getEnchantmentSize()
{
return enchantables.size();
}
public static int getFreezableSize()
{
return freezables.size();
}
}