Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

prismarine-entity

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prismarine-entity - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

.github/dependabot.yml

11

index.d.ts

@@ -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';
}
}

6

package.json
{
"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
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc