mc-beta-server/server/entities/EntityItem.ts

17 lines
358 B
TypeScript
Raw Normal View History

2023-04-17 02:05:11 +01:00
import { World } from "../World";
2023-10-29 05:08:26 +00:00
import { ItemStack } from "../inventories/ItemStack";
2023-04-17 02:05:11 +01:00
import { Entity } from "./Entity";
export class EntityItem extends Entity {
public age:number;
2023-06-26 09:57:40 +01:00
public itemStack:ItemStack;
2023-04-17 02:05:11 +01:00
2023-11-02 08:31:43 +00:00
public constructor(world:World, itemStack:ItemStack) {
2023-04-17 02:05:11 +01:00
super(world);
2023-06-26 09:57:40 +01:00
this.itemStack = itemStack;
2023-04-17 02:05:11 +01:00
this.age = 0;
this.health = 5;
}
}