// Path: src/main/java/com/corwinjv/mobtotems/TotemHelper.java
// public static final int DEFAULT_RADIUS = 32;
// 
// Path: src/main/java/com/corwinjv/mobtotems/TotemHelper.java
// public static final int RANGE_BOOST = 16;


import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.monster.IMob;
import net.minecraft.init.Items;
import net.minecraft.init.MobEffects;
import net.minecraft.item.ItemStack;
import net.minecraft.potion.PotionEffect;
import net.minecraft.util.DamageSource;
import net.minecraft.util.math.AxisAlignedBB;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
import javax.annotation.Nonnull;
import java.util.ArrayList;
import java.util.List;
import static com.corwinjv.mobtotems.TotemHelper.DEFAULT_RADIUS;
import static com.corwinjv.mobtotems.TotemHelper.RANGE_BOOST;
package com.corwinjv.mobtotems.blocks.tiles.TotemLogic;




/**
 * Created by CorwinJV on 1/25/2017.
 */
public class SpiderLogic extends TotemLogic {
    public static final int POISON_DURATION = 300;
    public static final int POTION_AMPLIFIER = 1;

    @Override
    public List<ItemStack> getCost() {
        List<ItemStack> cost = new ArrayList<>();
        cost.add(new ItemStack(Items.STRING, 2));
        return cost;
    }

    @Nonnull
    @Override
    public EffectType getEffectType() {
        return EffectType.EFFECT;
    }

    @Override
    public void performEffect(World world, BlockPos pos, Modifiers modifiers) {
// Path: src/main/java/com/corwinjv/mobtotems/TotemHelper.java
// public static final int DEFAULT_RADIUS = 32;
// 
// Path: src/main/java/com/corwinjv/mobtotems/TotemHelper.java
// public static final int RANGE_BOOST = 16;


// Path: src/main/java/com/corwinjv/mobtotems/blocks/tiles/TotemLogic/SpiderLogic.java
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.monster.IMob;
import net.minecraft.init.Items;
import net.minecraft.init.MobEffects;
import net.minecraft.item.ItemStack;
import net.minecraft.potion.PotionEffect;
import net.minecraft.util.DamageSource;
import net.minecraft.util.math.AxisAlignedBB;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
import javax.annotation.Nonnull;
import java.util.ArrayList;
import java.util.List;
import static com.corwinjv.mobtotems.TotemHelper.DEFAULT_RADIUS;
import static com.corwinjv.mobtotems.TotemHelper.RANGE_BOOST;

package com.corwinjv.mobtotems.blocks.tiles.TotemLogic;




/**
 * Created by CorwinJV on 1/25/2017.
 */
public class SpiderLogic extends TotemLogic {
    public static final int POISON_DURATION = 300;
    public static final int POTION_AMPLIFIER = 1;

    @Override
    public List<ItemStack> getCost() {
        List<ItemStack> cost = new ArrayList<>();
        cost.add(new ItemStack(Items.STRING, 2));
        return cost;
    }

    @Nonnull
    @Override
    public EffectType getEffectType() {
        return EffectType.EFFECT;
    }

    @Override
    public void performEffect(World world, BlockPos pos, Modifiers modifiers) {
        int radius = DEFAULT_RADIUS + (int) (RANGE_BOOST * modifiers.range);