Add command for listing entities in a world

Port of 303a775fc3

Will display a list of all entities in a world, as well as which chunks
they are in. Hopefully, this will make tracking down chunks with lots of
entities easier.

Only real change from the forge version is that instead of dimension
IDs, we accept world names in the form of a string.

/paper entity list - Lists all entities in the player's current world
/paper entity list minecraft:zombie - Lists all zombies in the player's
current world

/paper entity list * world_nether - Lists all entities in the nether
/paper entity list minecraft:ghast world_nether - Lists all ghasts in
the nether
This commit is contained in:
Zach Brown 2017-10-15 17:43:16 -04:00
parent e9eb9ec7eb
commit a1ea3785ca
No known key found for this signature in database
GPG key ID: CC9DA35FC5450B76
4 changed files with 223 additions and 39 deletions

View file

@ -65,6 +65,7 @@ import DefinedStructure
import EntityLlama
import EULA
import EntitySquid
import EntityTypes
import EntityWaterAnimal
import FileIOThread
import IHopper