Skip to content

Dummy Client World

To achieve some things in Minecraft, like rendering an entity to a screen, you will need a client world to spawn the entity into. You obviously do not want to just spawn it into a real world, and it may not even exist in some contexts like the main menu.

As such, Bento Util provides a DummyClientWorld class and a DummyClientWorld.getInstance() singleton method that you can use.

Example:

var entity = EntityType.CREEPER.create(DummyClientWorld.getInstance());