biome rework test 2
This commit is contained in:
parent
b524eeeaa3
commit
eec61c9258
6 changed files with 10 additions and 7 deletions
|
@ -15,9 +15,10 @@ public class ItemScanner extends ItemWand {
|
|||
|
||||
public void onUse(ItemStack stack, EntityNPC player, AWorldServer world, Vec3 vec)
|
||||
{
|
||||
player.connection.addHotbar(TextColor.NEON + "* Position in %s: %.3f %.3f %.3f, %.2f K, %.2f °C", world.dimension.getDisplay(),
|
||||
BlockPos pos = new BlockPos(vec);
|
||||
player.connection.addHotbar(TextColor.NEON + "* Position in %s: %.1f %.1f %.1f, %.1f K, %.1f °C, G: %.1f °C, %.1f %%", world.dimension.getDisplay(),
|
||||
vec.xCoord, vec.yCoord, vec.zCoord,
|
||||
world.getTemperatureK(new BlockPos(vec)), world.getTemperatureC(new BlockPos(vec)));
|
||||
world.getTemperatureK(pos), world.getTemperatureC(pos), world.getGenTemperature(pos.getX(), pos.getZ()), world.getGenHumidity(pos.getX(), pos.getZ()));
|
||||
}
|
||||
|
||||
public int getRange(ItemStack stack, EntityNPC player) {
|
||||
|
|
|
@ -50,4 +50,6 @@ public abstract class AWorldServer extends World {
|
|||
public abstract void growGrass(BlockPos pos, State state, Random rand);
|
||||
public abstract boolean generateBigMushroom(BlockPos pos, State state, Random rand);
|
||||
public abstract void generateTree(BlockPos pos, State state, Random rand);
|
||||
public abstract float getGenTemperature(int x, int z);
|
||||
public abstract float getGenHumidity(int x, int z);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue