DrRotstein
DrRotstein

Reputation: 65

Minecraft Forge 1.16.5 get world from player

Sorry, this may be a stupid question, but in version 36.1.35 there is no PlayerEntity#world and no Minecraft.getInstance().world or anything like that. So how do I get the world of a PlayerEntity then?

Upvotes: 3

Views: 2172

Answers (1)

Amboss_Mann
Amboss_Mann

Reputation: 126

The field is called PlayerEntity#level, it's inherited from Entity.

Upvotes: 3

Related Questions