From 0427ab89f1753a44b30cbc35ce021cbbdc845109 Mon Sep 17 00:00:00 2001 From: Foghrye4 Date: Thu, 10 Aug 2017 18:52:45 +0300 Subject: fix missing source folder --- .../gregtech/api/util/GT_SpawnEventHandler.java | 35 ---------------------- 1 file changed, 35 deletions(-) delete mode 100644 main/java/gregtech/api/util/GT_SpawnEventHandler.java (limited to 'main/java/gregtech/api/util/GT_SpawnEventHandler.java') 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 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]); - - } - } - } - } -} -- cgit v1.2.3