prismarine-entity
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -10,4 +10,11 @@ /// <reference types="node" /> | ||
declare module 'prismarine-entity' { | ||
export interface Effect { | ||
id: number; | ||
amplifier: number; | ||
duration: number; | ||
} | ||
export class Entity extends EventEmitter { | ||
constructor(id: number); | ||
id: number; | ||
type: EntityType; | ||
@@ -35,3 +42,5 @@ username?: string; | ||
food?: number; | ||
foodSaturation?: number; | ||
player?: object; | ||
effects: Effect[]; | ||
setEquipment(index: number, item: Item): void; | ||
@@ -41,2 +50,2 @@ } | ||
export type EntityType = 'player' | 'mob' | 'object' | 'global' | 'orb' | 'other'; | ||
} | ||
} |
{ | ||
"name": "prismarine-entity", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Represent a minecraft entity", | ||
@@ -29,6 +29,6 @@ "main": "index.js", | ||
"devDependencies": { | ||
"@types/node": "^14.0.1", | ||
"@types/node": "^15.0.1", | ||
"prismarine-item": "^1.4.0", | ||
"standard": "^14.3.4" | ||
"standard": "^16.0.1" | ||
} | ||
} |
@@ -101,8 +101,11 @@ # prismarine-entity | ||
#### entity.health | ||
The health of the player, default: 20 | ||
#### entity.food | ||
The food of the player, default: 20 | ||
#### entity.player | ||
The player | ||
@@ -112,2 +115,8 @@ | ||
### 1.2.0 | ||
* Add food saturation to typings | ||
* Add id to typings | ||
* Add effects to typings | ||
### 1.1.0 | ||
@@ -122,2 +131,3 @@ | ||
### 0.2.0 | ||
* extend EventEmitter | ||
@@ -127,2 +137,2 @@ | ||
* Import from mineflayer | ||
* Import from mineflayer |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6625
8
74
135