Class Registry.EntityEntry

java.lang.Object
net.minestom.server.registry.Registry.EntityEntry
All Implemented Interfaces:
Registry.Entry
Enclosing class:
Registry

public static final class Registry.EntityEntry extends Object implements Registry.Entry
  • Constructor Details Link icon

  • Method Details Link icon

    • namespace Link icon

      @NotNull public @NotNull NamespaceID namespace()
    • id Link icon

      public int id()
    • translationKey Link icon

      public String translationKey()
    • drag Link icon

      public double drag()
    • acceleration Link icon

      public double acceleration()
    • spawnType Link icon

      @NotNull public @NotNull EntitySpawnType spawnType()
    • width Link icon

      public double width()
    • height Link icon

      public double height()
    • eyeHeight Link icon

      public double eyeHeight()
    • fireImmune Link icon

      public boolean fireImmune()
    • clientTrackingRange Link icon

      public int clientTrackingRange()
    • entityAttachment Link icon

      @Nullable public @Nullable List<Double> entityAttachment(@NotNull @NotNull String attachmentName)
      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 Link icon

      @NotNull public @NotNull BoundingBox boundingBox()
    • custom Link icon

      public Registry.Properties custom()
      Specified by:
      custom in interface Registry.Entry