当前位置: 首页>>代码示例>>Java>>正文


Java WorldProvider.func_76570_a方法代码示例

本文整理汇总了Java中net.minecraft.world.WorldProvider.func_76570_a方法的典型用法代码示例。如果您正苦于以下问题:Java WorldProvider.func_76570_a方法的具体用法?Java WorldProvider.func_76570_a怎么用?Java WorldProvider.func_76570_a使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在net.minecraft.world.WorldProvider的用法示例。


在下文中一共展示了WorldProvider.func_76570_a方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getProviderForName

import net.minecraft.world.WorldProvider; //导入方法依赖的package包/类
public static WorldProvider getProviderForName(String par1String)
/*     */   {
/* 223 */     Integer[] var1 = getArrayOfPossibleDimensions();
/*     */ 
/* 225 */     for (Integer element : var1)
/*     */     {
/* 227 */       if ((WorldProvider.func_76570_a(element.intValue()) != null) && (WorldProvider.func_76570_a(element.intValue()).func_80007_l() != null))
/*     */       {
/* 229 */         if (par1String.contains("$"))
/*     */         {
/* 231 */           String[] twoDimensions = par1String.split("\\$");
/*     */ 
/* 233 */           if (WorldProvider.func_76570_a(element.intValue()).func_80007_l().equals(twoDimensions[0]))
/*     */           {
/* 235 */             return WorldProvider.func_76570_a(element.intValue());
/*     */           }
/*     */         }
/* 238 */         else if (WorldProvider.func_76570_a(element.intValue()).func_80007_l().equals(par1String))
/*     */         {
/* 240 */           return WorldProvider.func_76570_a(element.intValue());
/*     */         }
/*     */       }
/*     */     }
/*     */ 
/* 245 */     return null;
/*     */   }
 
开发者ID:Nathor40000,项目名称:Connection,代码行数:27,代码来源:WorldUtil.java

示例2: getArrayOfPossibleDimensions

import net.minecraft.world.WorldProvider; //导入方法依赖的package包/类
public static HashMap<String, Integer> getArrayOfPossibleDimensions(List<Integer> ids, GCCorePlayerMP playerBase)
/*     */   {
/* 299 */     HashMap map = new HashMap();
/*     */ 
/* 301 */     for (Integer id : ids)
/*     */     {
/* 303 */       if (WorldProvider.func_76570_a(id.intValue()) != null)
/*     */       {
/* 305 */         if ((((WorldProvider.func_76570_a(id.intValue()) instanceof IGalacticraftWorldProvider)) && (!(WorldProvider.func_76570_a(id.intValue()) instanceof IOrbitDimension))) || (WorldProvider.func_76570_a(id.intValue()).field_76574_g == 0))
/*     */         {
/* 307 */           map.put(WorldProvider.func_76570_a(id.intValue()).func_80007_l(), Integer.valueOf(WorldProvider.func_76570_a(id.intValue()).field_76574_g));
/*     */         }
/* 309 */         else if ((playerBase != null) && ((WorldProvider.func_76570_a(id.intValue()) instanceof IOrbitDimension)))
/*     */         {
/* 311 */           GCCoreSpaceStationData data = GCCoreSpaceStationData.getStationData(playerBase.field_70170_p, id.intValue(), playerBase);
/*     */ 
/* 313 */           if ((!GCCoreConfigManager.spaceStationsRequirePermission) || (data.getAllowedPlayers().contains(playerBase.field_71092_bJ.toLowerCase())) || (data.getAllowedPlayers().contains(playerBase.field_71092_bJ)))
/*     */           {
/* 315 */             map.put(WorldProvider.func_76570_a(id.intValue()).func_80007_l() + "$" + data.getOwner() + "$" + data.getSpaceStationName(), Integer.valueOf(WorldProvider.func_76570_a(id.intValue()).field_76574_g));
/*     */           }
/*     */         }
/*     */       }
/*     */     }
/*     */ 
/* 321 */     for (int j = 0; j < GalacticraftRegistry.getCelestialBodies().size(); j++)
/*     */     {
/* 323 */       ICelestialBody object = (ICelestialBody)GalacticraftRegistry.getCelestialBodies().get(j);
/*     */ 
/* 325 */       if ((!object.isReachable()) && (object.addToList()))
/*     */       {
/* 327 */         map.put(object.getName() + "*", Integer.valueOf(0));
/*     */       }
/*     */     }
/*     */ 
/* 331 */     return map;
/*     */   }
 
开发者ID:Nathor40000,项目名称:Connection,代码行数:37,代码来源:WorldUtil.java

示例3: WorldClient

import net.minecraft.world.WorldProvider; //导入方法依赖的package包/类
public WorldClient(NetClientHandler p_i1188_1_, WorldSettings p_i1188_2_, int p_i1188_3_, int p_i1188_4_, Profiler p_i1188_5_, ILogAgent p_i1188_6_) {
   super(new SaveHandlerMP(), "MpServer", WorldProvider.func_76570_a(p_i1188_3_), p_i1188_2_, p_i1188_5_, p_i1188_6_);
   this.field_73035_a = p_i1188_1_;
   this.field_73013_u = p_i1188_4_;
   this.func_72950_A(8, 64, 8);
   this.field_72988_C = p_i1188_1_.field_72558_b;
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:8,代码来源:WorldClient.java

示例4: World

import net.minecraft.world.WorldProvider; //导入方法依赖的package包/类
public World(ISaveHandler p_i1954_1_, String p_i1954_2_, WorldSettings p_i1954_3_, WorldProvider p_i1954_4_, Profiler p_i1954_5_, ILogAgent p_i1954_6_) {
   this.field_72990_M = this.field_73012_v.nextInt(12000);
   this.field_72994_J = new int['\u8000'];
   this.field_73019_z = p_i1954_1_;
   this.field_72984_F = p_i1954_5_;
   this.field_72988_C = new MapStorage(p_i1954_1_);
   this.field_98181_L = p_i1954_6_;
   this.field_72986_A = p_i1954_1_.func_75757_d();
   if(p_i1954_4_ != null) {
      this.field_73011_w = p_i1954_4_;
   } else if(this.field_72986_A != null && this.field_72986_A.func_76076_i() != 0) {
      this.field_73011_w = WorldProvider.func_76570_a(this.field_72986_A.func_76076_i());
   } else {
      this.field_73011_w = WorldProvider.func_76570_a(0);
   }

   if(this.field_72986_A == null) {
      this.field_72986_A = new WorldInfo(p_i1954_3_, p_i1954_2_);
   } else {
      this.field_72986_A.func_76062_a(p_i1954_2_);
   }

   this.field_73011_w.func_76558_a(this);
   this.field_73020_y = this.func_72970_h();
   if(!this.field_72986_A.func_76070_v()) {
      try {
         this.func_72963_a(p_i1954_3_);
      } catch (Throwable var11) {
         CrashReport var8 = CrashReport.func_85055_a(var11, "Exception initializing level");

         try {
            this.func_72914_a(var8);
         } catch (Throwable var10) {
            ;
         }

         throw new ReportedException(var8);
      }

      this.field_72986_A.func_76091_d(true);
   }

   VillageCollection var7 = (VillageCollection)this.field_72988_C.func_75742_a(VillageCollection.class, "villages");
   if(var7 == null) {
      this.field_72982_D = new VillageCollection(this);
      this.field_72988_C.func_75745_a("villages", this.field_72982_D);
   } else {
      this.field_72982_D = var7;
      this.field_72982_D.func_82566_a(this);
   }

   this.func_72966_v();
   this.func_72947_a();
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:55,代码来源:World.java


注:本文中的net.minecraft.world.WorldProvider.func_76570_a方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。