All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.nukkit.level.biome.impl.extremehills.StoneBeachBiome Maven / Gradle / Ivy

Go to download

A Minecraft Bedrock Edition server software implementation made in Java from scratch which supports all new features.

There is a newer version: 1.6.0.1-PN
Show newest version
package cn.nukkit.level.biome.impl.extremehills;

import cn.nukkit.api.RemovedFromNewRakNet;
import cn.nukkit.api.Since;
import cn.nukkit.level.biome.type.CoveredBiome;

/**
 * @author DaPorkchop_
 * 

* Occurs when Extreme hills and variants touch the ocean. * * Nearly ertical cliffs, but no overhangs. Height difference is 2-7 near ocean, and pretty much flat everywhere else */ public class StoneBeachBiome extends CoveredBiome { public StoneBeachBiome() { this.setBaseHeight(0.1f); this.setHeightVariation(0.8f); } @RemovedFromNewRakNet @Since("1.4.0.0-PN") @Override public int getSurfaceDepth(int y) { if (useNewRakNetSurfaceDepth()) { return getSurfaceDepth(0,y,0); } return 0; } @RemovedFromNewRakNet @Since("1.4.0.0-PN") @Override public int getSurfaceBlock(int y) { if (useNewRakNetSurface()) { return getSurfaceId(0,y,0) >> 4; } return 0; } @RemovedFromNewRakNet @Since("1.4.0.0-PN") @Override public int getGroundDepth(int y) { if (useNewRakNetGroundDepth()) { return getGroundDepth(0,y,0); } return 0; } @RemovedFromNewRakNet @Since("1.4.0.0-PN") @Override public int getGroundBlock(int y) { if (useNewRakNetGround()) { return getGroundId(0,y,0) >> 4; } return 0; } @Override public String getName() { return "Stone Beach"; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy