Skip to content

Commit

Permalink
add Entity.passengers and Entity.vehicle
Browse files Browse the repository at this point in the history
  • Loading branch information
qwqtoday committed May 22, 2024
1 parent ffc4760 commit 2c01c22
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 2c01c22

Please sign in to comment.