diff options
| author | Foghrye4 <foghrye4@gmail.com> | 2017-08-10 18:52:45 +0300 |
|---|---|---|
| committer | Foghrye4 <foghrye4@gmail.com> | 2017-08-10 18:52:45 +0300 |
| commit | 0427ab89f1753a44b30cbc35ce021cbbdc845109 (patch) | |
| tree | abe418ff5ec174e712fe8dedd434548a945b15a3 /main/java/gregtech/api/util/GT_SpawnEventHandler.java | |
| parent | 877312184c472d9845e5ef1008bc538f4634059f (diff) | |
fix missing source folder
Diffstat (limited to 'main/java/gregtech/api/util/GT_SpawnEventHandler.java')
| -rw-r--r-- | main/java/gregtech/api/util/GT_SpawnEventHandler.java | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/main/java/gregtech/api/util/GT_SpawnEventHandler.java b/main/java/gregtech/api/util/GT_SpawnEventHandler.java deleted file mode 100644 index 565b414..0000000 --- a/main/java/gregtech/api/util/GT_SpawnEventHandler.java +++ /dev/null @@ -1,35 +0,0 @@ -package gregtech.api.util; - -import java.util.ArrayList; -import java.util.List; - -import cpw.mods.fml.common.eventhandler.Event; -import cpw.mods.fml.common.eventhandler.SubscribeEvent; -import net.minecraft.entity.EnumCreatureType; -import net.minecraft.tileentity.TileEntity; -import net.minecraftforge.common.MinecraftForge; -import net.minecraftforge.event.entity.living.LivingSpawnEvent.CheckSpawn; - -public class GT_SpawnEventHandler { - - public static volatile List <int[]> mobReps = new ArrayList(); - - public GT_SpawnEventHandler(){ - MinecraftForge.EVENT_BUS.register(this); - } - - @SubscribeEvent - public void denyMobSpawn(CheckSpawn event) - { - if (event.getResult() == Event.Result.ALLOW) {return;} - if (event.entityLiving.isCreatureType(EnumCreatureType.monster, false)) - { - for(int[] rep : mobReps){ - if(rep[3] == event.entity.worldObj.provider.dimensionId){ - TileEntity tTile = event.entity.worldObj.getTileEntity(rep[0], rep[1], rep[2]); - - } - } - } - } -} |
