// Path: src/main/java/xilef11/mc/runesofwizardry_classics/Refs.java
// public final class Refs {
// 	private Refs(){}
// 	public static final String MODID = "runesofwizardry_classics";
// 	public static final String VERSION = "@VERSION@";
// 	public static final String NAME="Runes of Wizardry - Classic Dusts Pack";
// 	public static final String GUI_FACTORY="xilef11.mc.runesofwizardry_classics.client.gui.GuiFactory";
// 	public static final String CLIENT_PROXY = "xilef11.mc.runesofwizardry_classics.proxy.ClientProxy",
// 							   SERVER_PROXY="xilef11.mc.runesofwizardry_classics.proxy.ServerProxy";
// 	public static final String PATTERN_PATH=MODID+":patterns/";
// 	public static final String TEXTURE_PATH=MODID+":";
// 	public static final int TICKS_PER_DAY=24000;
// 	public static final int TPS=20;
// 	public static final class Lang{
// 		private Lang(){}
// 		public static final String RUNE=MODID+".rune";
// 		public static final String CONFIG=MODID+".configuration";
// 		public static final String DEC=RUNE+".decorative";
// 		
// 		public static final class Jei{
// 			private Jei(){}
// 			public static final String JEI=MODID+".jei";
// 			public static final String SPIRIT_SWORD=JEI+".spirit_sword";
// 			public static final String SPIRIT_PICKAXE=JEI+".spirit_pickaxe";
// 		}
// 	}
// }


import java.util.List;
import java.util.Set;
import com.zpig333.runesofwizardry.api.IRune;
import com.zpig333.runesofwizardry.api.RuneEntity;
import com.zpig333.runesofwizardry.tileentity.TileEntityDustActive;
import com.zpig333.runesofwizardry.tileentity.TileEntityDustActive.BeamType;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLiving;
import net.minecraft.entity.item.EntityItem;
import net.minecraft.entity.item.EntityXPOrb;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.DamageSource;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.math.AxisAlignedBB;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.Vec3d;
import net.minecraft.world.World;
import net.minecraftforge.fml.common.ObfuscationReflectionHelper;
import xilef11.mc.runesofwizardry_classics.Refs;
package xilef11.mc.runesofwizardry_classics.runes.entity;


/*Behaviour:
 * Lasts 1 day
 * Every mob kill adds 1/8 day
 * Every item kill (*stacksize) adds 1/2 sec
 * No matter where mobs are killed, (double) XP is dropped at the 4 "central" corners
 * Does not hurt players (summoning player only)
 * Kill zone is the smallest rectangle that contains the whole rune
 * - center + 4 on the long side (9 blocks)
 * - center + 3 on the short side (7 blocks)
 * don't forget the +1 in SE direction
 * - Height is 2(3) blocks
 */
public class RuneEntitySarlacc extends RuneEntity {
	private BlockPos nwd,seu;//north-west-down south-east-up bounds for the damage
	private int ticksremaining=0;
	private String activator="";
	public RuneEntitySarlacc(ItemStack[][] actualPattern, EnumFacing facing,
			Set<BlockPos> dusts, TileEntityDustActive entity, IRune creator) {
		super(actualPattern, facing, dusts, entity, creator);
		//calculate NW and SE positions
		if(facing==EnumFacing.NORTH || facing ==EnumFacing.SOUTH){
			//short side is North-south axis
			nwd = getPos().north(3).west(4).up();
			seu = getPos().south(4).east(5).up(3);
		}else{
			//short side is E-W axis
			nwd = getPos().north(4).west(3).up();
			seu = getPos().south(5).east(4).up(3);
		}
	}
	@Override
	public void onRuneActivatedbyPlayer(EntityPlayer player,
			ItemStack[] sacrifice, boolean negated) {
		//not much
		if(!player.world.isRemote){
// Path: src/main/java/xilef11/mc/runesofwizardry_classics/Refs.java
// public final class Refs {
// 	private Refs(){}
// 	public static final String MODID = "runesofwizardry_classics";
// 	public static final String VERSION = "@VERSION@";
// 	public static final String NAME="Runes of Wizardry - Classic Dusts Pack";
// 	public static final String GUI_FACTORY="xilef11.mc.runesofwizardry_classics.client.gui.GuiFactory";
// 	public static final String CLIENT_PROXY = "xilef11.mc.runesofwizardry_classics.proxy.ClientProxy",
// 							   SERVER_PROXY="xilef11.mc.runesofwizardry_classics.proxy.ServerProxy";
// 	public static final String PATTERN_PATH=MODID+":patterns/";
// 	public static final String TEXTURE_PATH=MODID+":";
// 	public static final int TICKS_PER_DAY=24000;
// 	public static final int TPS=20;
// 	public static final class Lang{
// 		private Lang(){}
// 		public static final String RUNE=MODID+".rune";
// 		public static final String CONFIG=MODID+".configuration";
// 		public static final String DEC=RUNE+".decorative";
// 		
// 		public static final class Jei{
// 			private Jei(){}
// 			public static final String JEI=MODID+".jei";
// 			public static final String SPIRIT_SWORD=JEI+".spirit_sword";
// 			public static final String SPIRIT_PICKAXE=JEI+".spirit_pickaxe";
// 		}
// 	}
// }


// Path: src/main/java/xilef11/mc/runesofwizardry_classics/runes/entity/RuneEntitySarlacc.java
import java.util.List;
import java.util.Set;
import com.zpig333.runesofwizardry.api.IRune;
import com.zpig333.runesofwizardry.api.RuneEntity;
import com.zpig333.runesofwizardry.tileentity.TileEntityDustActive;
import com.zpig333.runesofwizardry.tileentity.TileEntityDustActive.BeamType;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLiving;
import net.minecraft.entity.item.EntityItem;
import net.minecraft.entity.item.EntityXPOrb;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.DamageSource;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.math.AxisAlignedBB;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.Vec3d;
import net.minecraft.world.World;
import net.minecraftforge.fml.common.ObfuscationReflectionHelper;
import xilef11.mc.runesofwizardry_classics.Refs;

package xilef11.mc.runesofwizardry_classics.runes.entity;


/*Behaviour:
 * Lasts 1 day
 * Every mob kill adds 1/8 day
 * Every item kill (*stacksize) adds 1/2 sec
 * No matter where mobs are killed, (double) XP is dropped at the 4 "central" corners
 * Does not hurt players (summoning player only)
 * Kill zone is the smallest rectangle that contains the whole rune
 * - center + 4 on the long side (9 blocks)
 * - center + 3 on the short side (7 blocks)
 * don't forget the +1 in SE direction
 * - Height is 2(3) blocks
 */
public class RuneEntitySarlacc extends RuneEntity {
	private BlockPos nwd,seu;//north-west-down south-east-up bounds for the damage
	private int ticksremaining=0;
	private String activator="";
	public RuneEntitySarlacc(ItemStack[][] actualPattern, EnumFacing facing,
			Set<BlockPos> dusts, TileEntityDustActive entity, IRune creator) {
		super(actualPattern, facing, dusts, entity, creator);
		//calculate NW and SE positions
		if(facing==EnumFacing.NORTH || facing ==EnumFacing.SOUTH){
			//short side is North-south axis
			nwd = getPos().north(3).west(4).up();
			seu = getPos().south(4).east(5).up(3);
		}else{
			//short side is E-W axis
			nwd = getPos().north(4).west(3).up();
			seu = getPos().south(5).east(4).up(3);
		}
	}
	@Override
	public void onRuneActivatedbyPlayer(EntityPlayer player,
			ItemStack[] sacrifice, boolean negated) {
		//not much
		if(!player.world.isRemote){
			ticksremaining=Refs.TICKS_PER_DAY;