Reorganized the AlchemyArrayEffects so it is easier to make more unique arrays. Also fixed an NPE when crafting sigils.
This commit is contained in:
parent
587e94d197
commit
c5f0333aac
6 changed files with 138 additions and 25 deletions
|
@ -6,6 +6,7 @@ import lombok.Getter;
|
|||
import net.minecraft.entity.effect.EntityLightningBolt;
|
||||
import net.minecraft.entity.item.EntityItem;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.world.World;
|
||||
|
@ -15,8 +16,9 @@ public class AlchemyArrayEffectBinding extends AlchemyArrayEffect
|
|||
@Getter
|
||||
public final ItemStack outputStack;
|
||||
|
||||
public AlchemyArrayEffectBinding(ItemStack outputStack)
|
||||
public AlchemyArrayEffectBinding(String key, ItemStack outputStack)
|
||||
{
|
||||
super(key);
|
||||
this.outputStack = outputStack;
|
||||
}
|
||||
|
||||
|
@ -65,4 +67,22 @@ public class AlchemyArrayEffectBinding extends AlchemyArrayEffect
|
|||
world.spawnEntityInWorld(lightning);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeToNBT(NBTTagCompound tag)
|
||||
{
|
||||
//EMPTY
|
||||
}
|
||||
|
||||
@Override
|
||||
public void readFromNBT(NBTTagCompound tag)
|
||||
{
|
||||
//EMPTY
|
||||
}
|
||||
|
||||
@Override
|
||||
public AlchemyArrayEffect getNewCopy()
|
||||
{
|
||||
return new AlchemyArrayEffectBinding(key, outputStack);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue