Class RegistryData.EntityEntry
java.lang.Object
net.minestom.server.registry.RegistryData.EntityEntry
- All Implemented Interfaces:
RegistryData.Entry
- Enclosing class:
RegistryData
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleintdoubledrag()entityAttachment(String attachmentName) Deprecated, for removal: This API element is subject to removal in a future version.entityAttachments(String attachmentName) Deprecated, for removal: This API element is subject to removal in a future version.doublebooleandoubleheight()doubleintid()key()booleandoubledoublewidth()
-
Constructor Details
-
EntityEntry
-
-
Method Details
-
key
-
id
public int id() -
translationKey
-
drag
public double drag() -
acceleration
public double acceleration() -
horizontalAirResistance
public double horizontalAirResistance() -
verticalAirResistance
public double verticalAirResistance() -
shouldSendAttributes
public boolean shouldSendAttributes() -
width
public double width() -
height
public double height() -
eyeHeight
public double eyeHeight() -
fireImmune
public boolean fireImmune() -
clientTrackingRange
public int clientTrackingRange() -
entityAttachment
@Deprecated(forRemoval=true) @Nullable public @Nullable List<Double> entityAttachment(String attachmentName) Deprecated, for removal: This API element is subject to removal in a future version.useEntityType.entityAttachments(String)and select the first attachmentGets the entity attachment by name. Typically, will be PASSENGER or VEHICLE, but some entities have custom attachments (e.g. WARDEN_CHEST, NAMETAG)- Parameters:
attachmentName- The attachment to retrieve- Returns:
- A list of 3 doubles if the attachment is defined for this entity, or null if it is not defined
-
entityAttachments
@Deprecated(forRemoval=true) @Nullable public @Nullable List<List<Double>> entityAttachments(String attachmentName) Deprecated, for removal: This API element is subject to removal in a future version.Gets all entity attachments under a specific name. Typically, will be PASSENGER or VEHICLE, but some entities have custom attachments (e.g. WARDEN_CHEST, NAMETAG) This is only needed for happy ghast, as that is (currently) the only entity that has multiple attachments for PASSENGER as of 26.1- Parameters:
attachmentName- The attachment to retrieve- Returns:
- A list of a list of 3 doubles if the attachment is defined for this entity, or null if it is not defined
-
boundingBox
-
defaultAttributes
-
EntityType.entityAttachments(String)and select the first attachment