Package net.minestom.server.registry
Class Registry.EntityEntry
java.lang.Object
net.minestom.server.registry.Registry.EntityEntry
- All Implemented Interfaces:
Registry.Entry
- Enclosing class:
Registry
-
Constructor Summary
ConstructorDescriptionEntityEntry
(String namespace, Registry.Properties main, Registry.Properties custom) -
Method Summary
Modifier and TypeMethodDescriptiondouble
@NotNull BoundingBox
int
custom()
double
drag()
entityAttachment
(@NotNull String attachmentName) Gets the entity attachment by name.double
boolean
double
height()
int
id()
@NotNull NamespaceID
@NotNull EntitySpawnType
double
width()
-
Constructor Details
-
EntityEntry
-
-
Method Details
-
namespace
-
id
public int id() -
translationKey
-
drag
public double drag() -
acceleration
public double acceleration() -
spawnType
-
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
-
custom
- Specified by:
custom
in interfaceRegistry.Entry
-