Class EntityTypeBase<T extends Entity>

java.lang.Object
org.geysermc.geyser.entity.EntityTypeBase<T>
Direct Known Subclasses:
EntityTypeDefinition

public class EntityTypeBase<T extends Entity> extends Object
  • Field Details

    • width

      protected final float width
      The width of the Java entity type.
    • height

      protected final float height
      The height of the Java entity type
    • offset

      protected final float offset
      The vertical offset for the default Bedrock entity.
    • translators

      protected final List<EntityMetadataTranslator<? super T extends Entity,?,?>> translators
  • Constructor Details

  • Method Details

    • baseBuilder

      public static <T extends Entity> EntityTypeBase.Builder<T> baseBuilder(Class<T> clazz)
    • baseInherited

      public static <T extends Entity> EntityTypeBase.Builder<T> baseInherited(Class<T> clazz, EntityTypeBase<? super T> parent)
    • translateMetadata

      public <M> void translateMetadata(T entity, org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.EntityMetadata<M,? extends org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.MetadataType<M>> metadata)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • width

      public float width()
      The width of the Java entity type.
    • height

      public float height()
      The height of the Java entity type
    • offset

      public float offset()
      The vertical offset for the default Bedrock entity.
    • translators

      public List<EntityMetadataTranslator<? super T,?,?>> translators()