Skip to content

Commit

Permalink
add Entity.passengers and Entity.vehicle (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
qwqtoday authored Jan 19, 2025
1 parent 47b7167 commit e45c544
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ declare module 'prismarine-entity' {
elytraFlying?: boolean
player?: object;
effects: Effect[];
vehicle: Entity;
passengers: Entity[];
setEquipment(index: number, item: Item): void;
getCustomName(): ChatMessage | null;
getDroppedItem(): Item | null;
Expand Down
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ module.exports = (registryOrVersion) => {
this.equipment = new Array(5)
this.isValid = true
this.metadata = []
this.passengers = []
this.vehicle = null
}

get mobType () {
Expand Down

0 comments on commit e45c544

Please sign in to comment.