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

  • Method Details

    • namespace

      @NotNull public @NotNull NamespaceID namespace()
    • id

      public int id()
    • translationKey

      public String translationKey()
    • drag

      public double drag()
    • acceleration

      public double acceleration()
    • spawnType

      @NotNull public @NotNull EntitySpawnType spawnType()
    • width

      public double width()
    • height

      public double height()
    • eyeHeight

      public double eyeHeight()
    • fireImmune

      public boolean fireImmune()
    • clientTrackingRange

      public int clientTrackingRange()
    • entityAttachment

      @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

      @NotNull public @NotNull BoundingBox boundingBox()
    • custom

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