2014-02-23 02:28:52 +01:00
|
|
|
package appeng.entity;
|
2013-12-27 23:59:59 +01:00
|
|
|
|
|
|
|
import net.minecraft.entity.Entity;
|
|
|
|
|
|
|
|
public class EntityIds
|
|
|
|
{
|
|
|
|
|
|
|
|
public static final int TINY_TNT = 10;
|
|
|
|
public static final int SINGULARITY = 11;
|
|
|
|
public static final int CHARGED_QUARTZ = 12;
|
2014-02-23 02:28:52 +01:00
|
|
|
public static final int GROWING_CRYSTAL = 13;
|
2013-12-27 23:59:59 +01:00
|
|
|
|
|
|
|
public static int get(Class<? extends Entity> droppedEntity)
|
|
|
|
{
|
|
|
|
if ( droppedEntity == EntityTinyTNTPrimed.class )
|
|
|
|
return TINY_TNT;
|
|
|
|
if ( droppedEntity == EntitySingularity.class )
|
|
|
|
return SINGULARITY;
|
|
|
|
if ( droppedEntity == EntityChargedQuartz.class )
|
|
|
|
return CHARGED_QUARTZ;
|
2014-02-23 07:55:46 +01:00
|
|
|
if ( droppedEntity == EntityGrowingCrystal.class )
|
2014-02-23 02:28:52 +01:00
|
|
|
return GROWING_CRYSTAL;
|
2013-12-27 23:59:59 +01:00
|
|
|
|
|
|
|
throw new RuntimeException( "Missing entity id: " + droppedEntity.getName() );
|
|
|
|
}
|
|
|
|
}
|