@minecraft/creator-tools
Version:
Minecraft Creator Tools command line and libraries.
84 lines (83 loc) • 2.05 kB
TypeScript
import { InventoryItem, Item } from "./Items";
export interface ActorAttribute {
base: number;
current: number;
defaultMax: number;
defaultMin: number;
max: number;
min: number;
name: string;
}
export default class ActorItem {
#private;
armorItems: Item[];
chestItems: InventoryItem[];
attributes: ActorAttribute[];
air?: number;
attackTime?: number;
bodyRot?: number;
chested?: boolean;
color?: number;
color2?: number;
dead?: boolean;
deathTime?: number;
fallDistance?: number;
hasExecuted?: boolean;
hurtTime?: number;
invulnerable?: boolean;
isAngry?: boolean;
isAutonomous?: boolean;
isBaby?: boolean;
isEating?: boolean;
isGliding?: boolean;
isGlobal?: boolean;
isIllagerCaptain?: boolean;
isOrphaned?: boolean;
isOutOfControl?: boolean;
isPregnant?: boolean;
isRoaring?: boolean;
isScared?: boolean;
isStunned?: boolean;
isSwimming?: boolean;
isTamed?: boolean;
isTrusting?: boolean;
lastDimensionId?: number;
leasherId?: number;
lootDropped?: boolean;
mainhand?: string;
markVariant?: number;
naturalSpawn?: boolean;
offhand?: string;
onGround?: boolean;
ownerNew?: bigint;
persistent?: boolean;
portalCooldown?: boolean;
pos?: number[];
rotation?: number[];
saddled?: boolean;
sheared?: boolean;
showBottom?: boolean;
sitting?: boolean;
skinId?: number;
strength?: number;
strengthMax?: number;
surface?: boolean;
targetId?: bigint;
tradeExperience?: number;
tradeTier?: number;
uniqueId?: bigint;
variant?: number;
boundX?: number;
boundY?: number;
boundZ?: number;
canPickupItems?: boolean;
definitions?: string[];
hasBoundOrigin?: boolean;
hasSetCanPickupItems?: boolean;
identifier?: string;
internalComponents?: {
[keyName: string]: string;
};
constructor(identifier: string, keyData: Uint8Array);
loadFromNbt(): void;
}