customrealms / core

Core library for the CustomRealms runtime
https://customrealms.io/core
MIT License
36 stars 14 forks source link

Update Entity.fromJava to wrap with correct Entity subclasses #9

Closed connerdouglass closed 2 years ago

connerdouglass commented 2 years ago

This change makes sure that Entity.fromJava (used internally by this library) returns the correct subclass of entity. This will make it possible to use entity instanceof Player for example.

Let's test this out a bit more before we merge it. It might not be the ideal design.