initial commit

This commit is contained in:
Sen 2025-03-11 00:23:54 +01:00 committed by Sen
parent 3c9ee26b06
commit 22186c33b9
1458 changed files with 282792 additions and 0 deletions

View file

@ -0,0 +1,26 @@
package game.item;
import game.biome.Biome;
import game.color.TextColor;
import game.entity.npc.EntityNPC;
import game.world.BlockPos;
import game.world.Vec3;
import game.world.WorldServer;
public class ItemInfoWand extends ItemWand {
public ItemInfoWand() {
this.setColor(TextColor.BLUE);
}
public void onUse(ItemStack stack, EntityNPC player, WorldServer world, Vec3 vec)
{
Biome biome = world.getBiomeGenForCoords(new BlockPos(vec.xCoord, 0, vec.zCoord));
player.connection.addFeed(TextColor.NEON + "* Position bei Level %d: %.3f %.3f %.3f, %s [%d], %.2f °C", world.dimension.getDimensionId(),
vec.xCoord, vec.yCoord, vec.zCoord,
biome.display, biome.id, world.getTemperatureC(new BlockPos(vec)));
}
public int getRange(ItemStack stack, EntityNPC player) {
return 250;
}
}