手冊:@minecraft/server/EntityComponentTypeMap

出自Minecraft基岩版开发Wiki

EntityComponentTypeMap包含了各實體元件型別的別名映射。

映射[編輯]

別名
addrider EntityAddRiderComponent
ageable EntityAgeableComponent
breathable EntityBreathableComponent
can_climb EntityCanClimbComponent
can_fly EntityCanFlyComponent
can_power_jump EntityCanPowerJumpComponent
color EntityColorComponent
equippable EntityEquippableComponent
fire_immune EntityFireImmuneComponent
floats_in_liquid EntityFloatsInLiquidComponent
flying_speed EntityFlyingSpeedComponent
friction_modifier EntityFrictionModifierComponent
ground_offset EntityGroundOffsetComponent
healable EntityHealableComponent
health EntityHealthComponent
inventory EntityInventoryComponent
is_baby EntityIsBabyComponent
is_charged EntityIsChargedComponent
is_chested EntityIsChestedComponent
is_dyeable EntityIsDyeableComponent
is_hidden_when_invisible EntityIsHiddenWhenInvisibleComponent
is_ignited EntityIsIgnitedComponent
is_illager_captain EntityIsIllagerCaptainComponent
is_saddled EntityIsSaddledComponent
is_shaking EntityIsShakingComponent
is_sheared EntityIsShearedComponent
is_stackable EntityIsStackableComponent
is_stunned EntityIsStunnedComponent
is_tamed EntityIsTamedComponent
item EntityItemComponent
lava_movement EntityLavaMovementComponent
leashable EntityLeashableComponent
mark_variant EntityMarkVariantComponent
minecraft:addrider EntityAddRiderComponent
minecraft:ageable EntityAgeableComponent
minecraft:breathable EntityBreathableComponent
minecraft:can_climb EntityCanClimbComponent
minecraft:can_fly EntityCanFlyComponent
minecraft:can_power_jump EntityCanPowerJumpComponent
minecraft:color EntityColorComponent
minecraft:equippable EntityEquippableComponent
minecraft:fire_immune EntityFireImmuneComponent
minecraft:floats_in_liquid EntityFloatsInLiquidComponent
minecraft:flying_speed EntityFlyingSpeedComponent
minecraft:friction_modifier EntityFrictionModifierComponent
minecraft:ground_offset EntityGroundOffsetComponent
minecraft:healable EntityHealableComponent
minecraft:health EntityHealthComponent
minecraft:inventory EntityInventoryComponent
minecraft:is_baby EntityIsBabyComponent
minecraft:is_charged EntityIsChargedComponent
minecraft:is_chested EntityIsChestedComponent
minecraft:is_dyeable EntityIsDyeableComponent
minecraft:is_hidden_when_invisible EntityIsHiddenWhenInvisibleComponent
minecraft:is_ignited EntityIsIgnitedComponent
minecraft:is_illager_captain EntityIsIllagerCaptainComponent
minecraft:is_saddled EntityIsSaddledComponent
minecraft:is_shaking EntityIsShakingComponent
minecraft:is_sheared EntityIsShearedComponent
minecraft:is_stackable EntityIsStackableComponent
minecraft:is_stunned EntityIsStunnedComponent
minecraft:is_tamed EntityIsTamedComponent
minecraft:item EntityItemComponent
minecraft:lava_movement EntityLavaMovementComponent
minecraft:leashable EntityLeashableComponent
minecraft:mark_variant EntityMarkVariantComponent
minecraft:movement EntityMovementComponent
minecraft:movement.amphibious EntityMovementAmphibiousComponent
minecraft:movement.basic EntityMovementBasicComponent
minecraft:movement.fly EntityMovementFlyComponent
minecraft:movement.generic EntityMovementGenericComponent
minecraft:movement.glide EntityMovementGlideComponent
minecraft:movement.hover EntityMovementHoverComponent
minecraft:movement.jump EntityMovementJumpComponent
minecraft:movement.skip EntityMovementSkipComponent
minecraft:movement.sway EntityMovementSwayComponent
minecraft:navigation.climb EntityNavigationClimbComponent
minecraft:navigation.float EntityNavigationFloatComponent
minecraft:navigation.fly EntityNavigationFlyComponent
minecraft:navigation.generic EntityNavigationGenericComponent
minecraft:navigation.hover EntityNavigationHoverComponent
minecraft:navigation.walk EntityNavigationWalkComponent
minecraft:onfire EntityOnFireComponent
minecraft:push_through EntityPushThroughComponent
minecraft:rideable EntityRideableComponent
minecraft:riding EntityRidingComponent
minecraft:scale EntityScaleComponent
minecraft:skin_id EntitySkinIdComponent
minecraft:strength EntityStrengthComponent
minecraft:tameable EntityTameableComponent
minecraft:tamemount EntityMountTamingComponent
minecraft:underwater_movement EntityUnderwaterMovementComponent
minecraft:variant EntityVariantComponent
minecraft:wants_jockey EntityWantsJockeyComponent
movement EntityMovementComponent
movement.amphibious EntityMovementAmphibiousComponent
movement.basic EntityMovementBasicComponent
movement.fly EntityMovementFlyComponent
movement.generic EntityMovementGenericComponent
movement.glide EntityMovementGlideComponent
movement.hover EntityMovementHoverComponent
movement.jump EntityMovementJumpComponent
movement.skip EntityMovementSkipComponent
movement.sway EntityMovementSwayComponent
navigation.climb EntityNavigationClimbComponent
navigation.float EntityNavigationFloatComponent
navigation.fly EntityNavigationFlyComponent
navigation.generic EntityNavigationGenericComponent
navigation.hover EntityNavigationHoverComponent
navigation.walk EntityNavigationWalkComponent
onfire EntityOnFireComponent
push_through EntityPushThroughComponent
rideable EntityRideableComponent
riding EntityRidingComponent
scale EntityScaleComponent
skin_id EntitySkinIdComponent
strength EntityStrengthComponent
tameable EntityTameableComponent
tamemount EntityMountTamingComponent
underwater_movement EntityUnderwaterMovementComponent
variant EntityVariantComponent
wants_jockey EntityWantsJockeyComponent

程式碼[編輯]

type EntityComponentTypeMap = {
  'addrider': EntityAddRiderComponent;
  'ageable': EntityAgeableComponent;
  'breathable': EntityBreathableComponent;
  'can_climb': EntityCanClimbComponent;
  'can_fly': EntityCanFlyComponent;
  'can_power_jump': EntityCanPowerJumpComponent;
  'color': EntityColorComponent;
  'equippable': EntityEquippableComponent;
  'fire_immune': EntityFireImmuneComponent;
  'floats_in_liquid': EntityFloatsInLiquidComponent;
  'flying_speed': EntityFlyingSpeedComponent;
  'friction_modifier': EntityFrictionModifierComponent;
  'ground_offset': EntityGroundOffsetComponent;
  'healable': EntityHealableComponent;
  'health': EntityHealthComponent;
  'inventory': EntityInventoryComponent;
  'is_baby': EntityIsBabyComponent;
  'is_charged': EntityIsChargedComponent;
  'is_chested': EntityIsChestedComponent;
  'is_dyeable': EntityIsDyeableComponent;
  'is_hidden_when_invisible': EntityIsHiddenWhenInvisibleComponent;
  'is_ignited': EntityIsIgnitedComponent;
  'is_illager_captain': EntityIsIllagerCaptainComponent;
  'is_saddled': EntityIsSaddledComponent;
  'is_shaking': EntityIsShakingComponent;
  'is_sheared': EntityIsShearedComponent;
  'is_stackable': EntityIsStackableComponent;
  'is_stunned': EntityIsStunnedComponent;
  'is_tamed': EntityIsTamedComponent;
  'item': EntityItemComponent;
  'lava_movement': EntityLavaMovementComponent;
  'leashable': EntityLeashableComponent;
  'mark_variant': EntityMarkVariantComponent;
  'minecraft:addrider': EntityAddRiderComponent;
  'minecraft:ageable': EntityAgeableComponent;
  'minecraft:breathable': EntityBreathableComponent;
  'minecraft:can_climb': EntityCanClimbComponent;
  'minecraft:can_fly': EntityCanFlyComponent;
  'minecraft:can_power_jump': EntityCanPowerJumpComponent;
  'minecraft:color': EntityColorComponent;
  'minecraft:equippable': EntityEquippableComponent;
  'minecraft:fire_immune': EntityFireImmuneComponent;
  'minecraft:floats_in_liquid': EntityFloatsInLiquidComponent;
  'minecraft:flying_speed': EntityFlyingSpeedComponent;
  'minecraft:friction_modifier': EntityFrictionModifierComponent;
  'minecraft:ground_offset': EntityGroundOffsetComponent;
  'minecraft:healable': EntityHealableComponent;
  'minecraft:health': EntityHealthComponent;
  'minecraft:inventory': EntityInventoryComponent;
  'minecraft:is_baby': EntityIsBabyComponent;
  'minecraft:is_charged': EntityIsChargedComponent;
  'minecraft:is_chested': EntityIsChestedComponent;
  'minecraft:is_dyeable': EntityIsDyeableComponent;
  'minecraft:is_hidden_when_invisible': EntityIsHiddenWhenInvisibleComponent;
  'minecraft:is_ignited': EntityIsIgnitedComponent;
  'minecraft:is_illager_captain': EntityIsIllagerCaptainComponent;
  'minecraft:is_saddled': EntityIsSaddledComponent;
  'minecraft:is_shaking': EntityIsShakingComponent;
  'minecraft:is_sheared': EntityIsShearedComponent;
  'minecraft:is_stackable': EntityIsStackableComponent;
  'minecraft:is_stunned': EntityIsStunnedComponent;
  'minecraft:is_tamed': EntityIsTamedComponent;
  'minecraft:item': EntityItemComponent;
  'minecraft:lava_movement': EntityLavaMovementComponent;
  'minecraft:leashable': EntityLeashableComponent;
  'minecraft:mark_variant': EntityMarkVariantComponent;
  'minecraft:movement': EntityMovementComponent;
  'minecraft:movement.amphibious': EntityMovementAmphibiousComponent;
  'minecraft:movement.basic': EntityMovementBasicComponent;
  'minecraft:movement.fly': EntityMovementFlyComponent;
  'minecraft:movement.generic': EntityMovementGenericComponent;
  'minecraft:movement.glide': EntityMovementGlideComponent;
  'minecraft:movement.hover': EntityMovementHoverComponent;
  'minecraft:movement.jump': EntityMovementJumpComponent;
  'minecraft:movement.skip': EntityMovementSkipComponent;
  'minecraft:movement.sway': EntityMovementSwayComponent;
  'minecraft:navigation.climb': EntityNavigationClimbComponent;
  'minecraft:navigation.float': EntityNavigationFloatComponent;
  'minecraft:navigation.fly': EntityNavigationFlyComponent;
  'minecraft:navigation.generic': EntityNavigationGenericComponent;
  'minecraft:navigation.hover': EntityNavigationHoverComponent;
  'minecraft:navigation.walk': EntityNavigationWalkComponent;
  'minecraft:onfire': EntityOnFireComponent;
  'minecraft:push_through': EntityPushThroughComponent;
  'minecraft:rideable': EntityRideableComponent;
  'minecraft:riding': EntityRidingComponent;
  'minecraft:scale': EntityScaleComponent;
  'minecraft:skin_id': EntitySkinIdComponent;
  'minecraft:strength': EntityStrengthComponent;
  'minecraft:tameable': EntityTameableComponent;
  'minecraft:tamemount': EntityMountTamingComponent;
  'minecraft:underwater_movement': EntityUnderwaterMovementComponent;
  'minecraft:variant': EntityVariantComponent;
  'minecraft:wants_jockey': EntityWantsJockeyComponent;
  'movement': EntityMovementComponent;
  'movement.amphibious': EntityMovementAmphibiousComponent;
  'movement.basic': EntityMovementBasicComponent;
  'movement.fly': EntityMovementFlyComponent;
  'movement.generic': EntityMovementGenericComponent;
  'movement.glide': EntityMovementGlideComponent;
  'movement.hover': EntityMovementHoverComponent;
  'movement.jump': EntityMovementJumpComponent;
  'movement.skip': EntityMovementSkipComponent;
  'movement.sway': EntityMovementSwayComponent;
  'navigation.climb': EntityNavigationClimbComponent;
  'navigation.float': EntityNavigationFloatComponent;
  'navigation.fly': EntityNavigationFlyComponent;
  'navigation.generic': EntityNavigationGenericComponent;
  'navigation.hover': EntityNavigationHoverComponent;
  'navigation.walk': EntityNavigationWalkComponent;
  'onfire': EntityOnFireComponent;
  'push_through': EntityPushThroughComponent;
  'rideable': EntityRideableComponent;
  'riding': EntityRidingComponent;
  'scale': EntityScaleComponent;
  'skin_id': EntitySkinIdComponent;
  'strength': EntityStrengthComponent;
  'tameable': EntityTameableComponent;
  'tamemount': EntityMountTamingComponent;
  'underwater_movement': EntityUnderwaterMovementComponent;
  'variant': EntityVariantComponent;
  'wants_jockey': EntityWantsJockeyComponent;
};