本文整理匯總了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;
/* */ }
示例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;
/* */ }
示例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;
}
示例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();
}