minecraft-addon-tools / minecraft-scripting-types

TypeScript typings for the Minecraft Scripting API
Other
44 stars 3 forks source link

EntityId appears as type Number when is an [object] #4

Open aakison opened 5 years ago

aakison commented 5 years ago

It appears that when listening to events like ReceiveFromMinecraftClient.PickHitResultChanged with events like IPickHitResultChangedEvent and IHitResultChangedEvent the event data contains entity : number. However, this appears to be closer to IEntityObject instead. The keys I found in the object (when not null) where type, id, __unique_id__ and __identifier__.