Package tconstruct.mechworks.landmine.behavior

Source Code of tconstruct.mechworks.landmine.behavior.BehaviorDefault

package tconstruct.mechworks.landmine.behavior;

import net.minecraft.entity.Entity;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
import tconstruct.util.DamageSourceLandmine;

public class BehaviorDefault extends Behavior
{

    @Override
    public void executeLogic (World par1World, int par2, int par3, int par4, ItemStack par5ItemStack, Entity triggerer, boolean willBlockBeRemoved)
    {
        if (triggerer != null)
        {
            triggerer.attackEntityFrom(new DamageSourceLandmine("Landmine"), 5F);
        }
    }

}
TOP

Related Classes of tconstruct.mechworks.landmine.behavior.BehaviorDefault

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.