blob: 3cd2cd34eea15ac6fe894355ad9b9e935fcae800 [file] [log] [blame] [raw]
package com.legacy.aether.common.registry;
import java.util.ArrayList;
import java.util.List;
import com.legacy.aether.common.registry.objects.AetherEnchantment;
import com.legacy.aether.common.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();
}
}