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 TypeMethodDescriptiondouble
@NotNull BoundingBox
int
double
drag()
entityAttachment
(@NotNull String attachmentName) Gets the entity attachment by name.double
boolean
double
height()
double
int
id()
@NotNull net.kyori.adventure.key.Key
key()
boolean
double
double
width()
-
Constructor Details
-
EntityEntry
-
-
Method Details
-
key
@NotNull public @NotNull net.kyori.adventure.key.Key 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
Gets 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
-
boundingBox
-