resonant-induction/APIs/icbm/api/explosion/IExplosive.java

80 lines
1.8 KiB
Java
Raw Normal View History

package icbm.api.explosion;
import icbm.api.ITier;
2013-10-09 23:55:28 +02:00
import net.minecraft.client.model.ModelBase;
import net.minecraft.entity.Entity;
2013-10-09 23:55:28 +02:00
import net.minecraft.util.Icon;
import net.minecraft.util.ResourceLocation;
import net.minecraft.world.World;
2013-10-09 23:55:28 +02:00
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
/**
* An interface used to find various types of explosive's information.
*
* @author Calclavia
*
*/
2013-07-23 00:24:55 +02:00
public interface IExplosive extends ITier
{
/**
* @return Gets the explosive's ID.
*/
public int getID();
/**
* @return The unique name key in the ICBM language file.
*/
public String getUnlocalizedName();
/**
2013-07-23 00:24:55 +02:00
* @return Gets the specific translated name of the block versions of the explosive.
*/
public String getExplosiveName();
/**
2013-07-23 00:24:55 +02:00
* @return Gets the specific translated name of the grenade versions of the explosive.
*/
public String getGrenadeName();
/**
2013-07-23 00:24:55 +02:00
* @return Gets the specific translated name of the missile versions of the explosive.
*/
public String getMissileName();
/**
2013-07-23 00:24:55 +02:00
* @return Gets the specific translated name of the minecart versions of the explosive.
*/
public String getMinecartName();
/**
* @return The tier of the explosive.
*/
@Override
public int getTier();
/**
* Creates a new explosion at a given location.
*
2013-07-23 00:24:55 +02:00
* @param world The world in which the explosion takes place.
* @param x The X-Coord
* @param y The Y-Coord
* @param z The Z-Coord
* @param entity Entity that caused the explosion.
*/
2013-07-23 00:24:55 +02:00
public void createExplosion(World world, double x, double y, double z, Entity entity);
2013-10-09 23:55:28 +02:00
@SideOnly(Side.CLIENT)
public ModelBase getBlockModel();
@SideOnly(Side.CLIENT)
public ModelBase getMissileModel();
@SideOnly(Side.CLIENT)
public ResourceLocation getBlockResource();
@SideOnly(Side.CLIENT)
public Icon getIcon();
}