PrismarineJS / prismarine-entity

Represent a minecraft entity
22 stars 15 forks source link

Hiding Entity class away, in favor of a public IEntity interface #32

Closed GenerelSchwerz closed 1 year ago

u9g commented 2 years ago

can you name the pr something meaningful

GenerelSchwerz commented 2 years ago

done

u9g commented 2 years ago

U9G — 03/01/2022:

why did you call it IEntity? its literally an entity class

Generel — 03/01/2022:

When its exposed like that, it can't be used as a class since it isn't defined until you return a value from the loader function

import loader, {Entity} from "prismarine-entity";

so getting it like this returns undefined not a static reference of a class

rom1504 commented 1 year ago

old