Java 类net.minecraftforge.event.entity.living.LivingPackSizeEvent 实例源码

项目:CustomWorldGen    文件:ForgeEventFactory.java   
public static int getMaxSpawnPackSize(EntityLiving entity)
{
    LivingPackSizeEvent maxCanSpawnEvent = new LivingPackSizeEvent(entity);
    MinecraftForge.EVENT_BUS.post(maxCanSpawnEvent);
    return maxCanSpawnEvent.getResult() == Result.ALLOW ? maxCanSpawnEvent.getMaxPackSize() : entity.getMaxSpawnedInChunk();
}
项目:TRHS_Club_Mod_2016    文件:ForgeEventFactory.java   
public static int getMaxSpawnPackSize(EntityLiving entity)
{
    LivingPackSizeEvent maxCanSpawnEvent = new LivingPackSizeEvent(entity);
    MinecraftForge.EVENT_BUS.post(maxCanSpawnEvent);
    return maxCanSpawnEvent.getResult() == Result.ALLOW ? maxCanSpawnEvent.maxPackSize : entity.func_70641_bl();
}
项目:CauldronGit    文件:ForgeEventFactory.java   
public static int getMaxSpawnPackSize(EntityLiving entity)
{
    LivingPackSizeEvent maxCanSpawnEvent = new LivingPackSizeEvent(entity);
    MinecraftForge.EVENT_BUS.post(maxCanSpawnEvent);
    return maxCanSpawnEvent.getResult() == Result.ALLOW ? maxCanSpawnEvent.maxPackSize : entity.getMaxSpawnedInChunk();
}
项目:Cauldron    文件:ForgeEventFactory.java   
public static int getMaxSpawnPackSize(EntityLiving entity)
{
    LivingPackSizeEvent maxCanSpawnEvent = new LivingPackSizeEvent(entity);
    MinecraftForge.EVENT_BUS.post(maxCanSpawnEvent);
    return maxCanSpawnEvent.getResult() == Result.ALLOW ? maxCanSpawnEvent.maxPackSize : entity.getMaxSpawnedInChunk();
}
项目:Cauldron    文件:ForgeEventFactory.java   
public static int getMaxSpawnPackSize(EntityLiving entity)
{
    LivingPackSizeEvent maxCanSpawnEvent = new LivingPackSizeEvent(entity);
    MinecraftForge.EVENT_BUS.post(maxCanSpawnEvent);
    return maxCanSpawnEvent.getResult() == Result.ALLOW ? maxCanSpawnEvent.maxPackSize : entity.getMaxSpawnedInChunk();
}
项目:Cauldron    文件:ForgeEventFactory.java   
public static int getMaxSpawnPackSize(EntityLiving entity)
{
    LivingPackSizeEvent maxCanSpawnEvent = new LivingPackSizeEvent(entity);
    MinecraftForge.EVENT_BUS.post(maxCanSpawnEvent);
    return maxCanSpawnEvent.getResult() == Result.ALLOW ? maxCanSpawnEvent.maxPackSize : entity.getMaxSpawnedInChunk();
}
项目:RuneCraftery    文件:ForgeEventFactory.java   
public static int getMaxSpawnPackSize(EntityLiving entity)
{
    LivingPackSizeEvent maxCanSpawnEvent = new LivingPackSizeEvent(entity);
    MinecraftForge.EVENT_BUS.post(maxCanSpawnEvent);
    return maxCanSpawnEvent.getResult() == Result.ALLOW ? maxCanSpawnEvent.maxPackSize : entity.getMaxSpawnedInChunk();
}
项目:RuneCraftery    文件:ForgeEventFactory.java   
public static int getMaxSpawnPackSize(EntityLiving entity)
{
    LivingPackSizeEvent maxCanSpawnEvent = new LivingPackSizeEvent(entity);
    MinecraftForge.EVENT_BUS.post(maxCanSpawnEvent);
    return maxCanSpawnEvent.getResult() == Result.ALLOW ? maxCanSpawnEvent.maxPackSize : entity.getMaxSpawnedInChunk();
}
项目:BetterNutritionMod    文件:ForgeEventFactory.java   
public static int getMaxSpawnPackSize(EntityLiving entity)
{
    LivingPackSizeEvent maxCanSpawnEvent = new LivingPackSizeEvent(entity);
    MinecraftForge.EVENT_BUS.post(maxCanSpawnEvent);
    return maxCanSpawnEvent.getResult() == Result.ALLOW ? maxCanSpawnEvent.maxPackSize : entity.getMaxSpawnedInChunk();
}