@Override public void addNoSundamageBiomes(Biome... biomes) { for (Biome b : biomes) { addNoSundamageBiome(b.getBiomeClass()); } }
@Override public boolean getSundamageInBiome(@Nonnull Biome biome) { if (!getSundamageInBiome(biome.getRegistryName())) return false; for (Class clazz : noSundamageBiomes) { if (clazz.isAssignableFrom(biome.getBiomeClass())) { return false; } } return true; }
Biome b = iterator.next(); if (b != null) { if (!b.getBiomeClass().getName().startsWith("net.minecraft.") && !b.getBiomeClass().getName().startsWith("de.teamlapen.")) { Iterator<Biome.SpawnListEntry> iterator2 = b.getSpawnableList(EnumCreatureType.MONSTER).iterator(); boolean zombie = false;
@Override protected List<String> getLines() { //noinspection ConstantConditions return ForgeRegistries.BIOMES.getValuesCollection().stream() .map(b -> String.join(",", b.getRegistryName().toString(), getBiomeName(b), b.getTempCategory().name() , Boolean.toString(b.isHighHumidity()), Float.toString(b.getHeightVariation()), b.topBlock.getBlock().getRegistryName().toString() , BiomeDictionary.getTypes(b).stream().map(BiomeDictionary.Type::getName).collect(Collectors.joining("|")), b.getBiomeClass().toString())) .sorted(Comparator.naturalOrder()).collect(Collectors.toList()); }
try{ if(ScriptCommandCreateBiome.extraParameters.containsKey(toCopy.getBiomeClass())) { final List<? extends Property<?>> props = ScriptCommandCreateBiome.extraParameters.get(toCopy.getBiomeClass()); final Class<?>[] types = new Class<?>[props.size()+1]; for(int i = 0; i < props.size(); i++) types[i] = Primitives.unwrap(props.get(i).getTypeClass()); types[types.length-1] = BiomeProperties.class; construct = toCopy.getBiomeClass().getConstructor(types); }else construct = toCopy.getBiomeClass().getConstructor(BiomeProperties.class); } catch(final Exception e){ try{ construct = toCopy.getBiomeClass().getConstructor(); } catch(final Exception e1){} LogHelper.warn("Unable to copy biome class "+toCopy.getBiomeClass().getCanonicalName()+"! Some functionality may not be copied!"); biome = new BiomeTweakerBiome(new BiomeProperties("BiomeTweaker Biome").setBaseHeight(0.125F).setHeightVariation(0.05F).setTemperature(0.8F).setRainfall(0.4F)); } else break; default: final List<? extends Property<?>> props = ScriptCommandCreateBiome.extraParameters.get(toCopy.getBiomeClass()); final Object[] objs = new Object[props.size()+1]; for(int i = 0; i < props.size(); i++)
private boolean isJungleCompatible(int p_151631_1_) { return Biome.getBiome(p_151631_1_) != null && Biome.getBiome(p_151631_1_).getBiomeClass() == BiomeJungle.class ? true : p_151631_1_ == Biome.getIdForBiome(Biomes.JUNGLE_EDGE) || p_151631_1_ == Biome.getIdForBiome(Biomes.JUNGLE) || p_151631_1_ == Biome.getIdForBiome(Biomes.JUNGLE_HILLS) || p_151631_1_ == Biome.getIdForBiome(Biomes.FOREST) || p_151631_1_ == Biome.getIdForBiome(Biomes.TAIGA) || isBiomeOceanic(p_151631_1_); }
f = map.get(object.toString()); } catch(NullPointerException e) { throw new RuntimeException("Biome '" + biome.getBiomeName() + "' (" + biome.getBiomeClass().getName() + ") could not be found in the biome registry! This is likely a bug in the mod providing that biome!", e);
aint1[j + i * areaWidth] = Biome.getIdForBiome(Biomes.MUSHROOM_ISLAND_SHORE); } else if (biome != null && biome.getBiomeClass() == BiomeJungle.class) { int i2 = aint[j + 1 + (i + 1 - 1) * (areaWidth + 2)]; int l2 = aint[j + 1 + 1 + (i + 1) * (areaWidth + 2)];