Added the Binding array
Hehe lightning go brrrrrr
This commit is contained in:
parent
2075fa5be3
commit
507c541d5b
15 changed files with 407 additions and 6 deletions
|
@ -8,14 +8,17 @@ import org.apache.commons.lang3.tuple.Pair;
|
|||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.world.World;
|
||||
import wayoftime.bloodmagic.BloodMagic;
|
||||
import wayoftime.bloodmagic.common.alchemyarray.AlchemyArrayEffect;
|
||||
import wayoftime.bloodmagic.common.alchemyarray.AlchemyArrayEffectBinding;
|
||||
import wayoftime.bloodmagic.common.alchemyarray.AlchemyArrayEffectCrafting;
|
||||
import wayoftime.bloodmagic.impl.BloodMagicAPI;
|
||||
import wayoftime.bloodmagic.recipe.RecipeAlchemyArray;
|
||||
import wayoftime.bloodmagic.common.alchemyarray.AlchemyArrayEffect;
|
||||
import wayoftime.bloodmagic.common.alchemyarray.AlchemyArrayEffectCrafting;
|
||||
|
||||
public class AlchemyArrayRegistry
|
||||
{
|
||||
public static Map<ResourceLocation, AlchemyArrayEffect> effectMap = new HashMap<ResourceLocation, AlchemyArrayEffect>();
|
||||
public static final ResourceLocation BINDING_ARRAY = BloodMagic.rl("textures/models/alchemyarrays/bindingarray.png");
|
||||
|
||||
public static boolean registerEffect(ResourceLocation rl, AlchemyArrayEffect effect)
|
||||
{
|
||||
|
@ -35,6 +38,10 @@ public class AlchemyArrayRegistry
|
|||
|
||||
if (!recipe.getOutput().isEmpty())
|
||||
{
|
||||
if (recipe.getTexture().equals(BINDING_ARRAY))
|
||||
{
|
||||
return new AlchemyArrayEffectBinding(recipe.getOutput());
|
||||
}
|
||||
// Return a new instance of AlchemyEffectCrafting
|
||||
return new AlchemyArrayEffectCrafting(recipe.getOutput());
|
||||
}
|
||||
|
@ -50,4 +57,5 @@ public class AlchemyArrayRegistry
|
|||
|
||||
return getEffect(world, array.getRight().getId(), array.getRight());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -10,9 +10,10 @@ import net.minecraft.util.ResourceLocation;
|
|||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.api.distmarker.Dist;
|
||||
import net.minecraftforge.api.distmarker.OnlyIn;
|
||||
import wayoftime.bloodmagic.client.render.alchemyarray.AlchemyArrayRenderer;
|
||||
import wayoftime.bloodmagic.client.render.alchemyarray.BindingAlchemyCircleRenderer;
|
||||
import wayoftime.bloodmagic.impl.BloodMagicAPI;
|
||||
import wayoftime.bloodmagic.recipe.RecipeAlchemyArray;
|
||||
import wayoftime.bloodmagic.client.render.alchemyarray.AlchemyArrayRenderer;
|
||||
|
||||
public class AlchemyArrayRendererRegistry
|
||||
{
|
||||
|
@ -47,6 +48,9 @@ public class AlchemyArrayRendererRegistry
|
|||
}
|
||||
|
||||
ResourceLocation texture = recipe.getTexture();
|
||||
if (AlchemyArrayRegistry.BINDING_ARRAY.equals(texture))
|
||||
return new BindingAlchemyCircleRenderer();
|
||||
|
||||
if (texture != null)
|
||||
return new AlchemyArrayRenderer(texture);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue