EntityHealableComponent Class
Extends
Defines the interactions with this entity for healing it.
Properties
forceUse
read-only forceUse: boolean;
Determines if an item can be used regardless of the entity being at full health.
Type: boolean
Warning
This property can throw errors when used.
Methods
getFeedItems
getFeedItems(): FeedItem[]
A set of items that can specifically heal this entity.
Returns FeedItem[] - Entity that this component is associated with.
Warning
This function can throw errors.
Constants
componentId
static read-only componentId = "minecraft:healable";
Type: string
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for