跳转至

EntityInventoryComponent

文档版本:1.21.0.24

EntityInventoryComponent类,扩展自EntityComponent。script_api.minecraft/server.entityinventorycomponent.description

常量

componentId
static read-only componentId = "minecraft:inventory";

属性

additionalSlotsPerStrength
read-only additionalSlotsPerStrength: int32;
canBeSiphonedFrom
read-only canBeSiphonedFrom: boolean;
container
read-only container: Container | undefined;
containerType
read-only containerType: string;
inventorySize
read-only inventorySize: int32;
private
read-only private: boolean;
restrictToOwner
read-only restrictToOwner: boolean;