26 lines
894 B
Java
26 lines
894 B
Java
package net.paladrill.paladrillmod.procedure;
|
|
|
|
import net.paladrill.paladrillmod.ElementsPaladrillmodMod;
|
|
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
import net.minecraft.entity.Entity;
|
|
|
|
import java.util.Map;
|
|
|
|
@ElementsPaladrillmodMod.ModElement.Tag
|
|
public class ProcedurePickaxeOfTheGodLevel25BlockDestroyedWithTool extends ElementsPaladrillmodMod.ModElement {
|
|
public ProcedurePickaxeOfTheGodLevel25BlockDestroyedWithTool(ElementsPaladrillmodMod instance) {
|
|
super(instance, 308);
|
|
}
|
|
|
|
public static void executeProcedure(Map<String, Object> dependencies) {
|
|
if (dependencies.get("entity") == null) {
|
|
System.err.println("Failed to load dependency entity for procedure PickaxeOfTheGodLevel25BlockDestroyedWithTool!");
|
|
return;
|
|
}
|
|
Entity entity = (Entity) dependencies.get("entity");
|
|
if (entity instanceof EntityPlayer)
|
|
((EntityPlayer) entity).addExperience((int) 1);
|
|
}
|
|
}
|