Final classes with private constructor
This commit is contained in:
parent
d1f2625262
commit
db7296c0a1
1 changed files with 12 additions and 7 deletions
|
@ -18,25 +18,30 @@
|
|||
|
||||
package appeng.entity;
|
||||
|
||||
|
||||
import net.minecraft.entity.Entity;
|
||||
|
||||
public class EntityIds
|
||||
{
|
||||
|
||||
public final class EntityIds
|
||||
{
|
||||
public static final int TINY_TNT = 10;
|
||||
public static final int SINGULARITY = 11;
|
||||
public static final int CHARGED_QUARTZ = 12;
|
||||
public static final int GROWING_CRYSTAL = 13;
|
||||
|
||||
public static int get(Class<? extends Entity> droppedEntity)
|
||||
private EntityIds()
|
||||
{
|
||||
if ( droppedEntity == EntityTinyTNTPrimed.class )
|
||||
}
|
||||
|
||||
public static int get( Class<? extends Entity> droppedEntity )
|
||||
{
|
||||
if( droppedEntity == EntityTinyTNTPrimed.class )
|
||||
return TINY_TNT;
|
||||
if ( droppedEntity == EntitySingularity.class )
|
||||
if( droppedEntity == EntitySingularity.class )
|
||||
return SINGULARITY;
|
||||
if ( droppedEntity == EntityChargedQuartz.class )
|
||||
if( droppedEntity == EntityChargedQuartz.class )
|
||||
return CHARGED_QUARTZ;
|
||||
if ( droppedEntity == EntityGrowingCrystal.class )
|
||||
if( droppedEntity == EntityGrowingCrystal.class )
|
||||
return GROWING_CRYSTAL;
|
||||
|
||||
throw new RuntimeException( "Missing entity id: " + droppedEntity.getName() );
|
||||
|
|
Loading…
Reference in a new issue