Package org.geysermc.geyser.entity
Class EntityTypeBase<T extends Entity>
java.lang.Object
org.geysermc.geyser.entity.EntityTypeBase<T>
- Direct Known Subclasses:
EntityTypeDefinition
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final floatThe height of the Java entity typeprotected final floatThe vertical offset for the default Bedrock entity.protected final List<EntityMetadataTranslator<? super T,?, ?>> protected final floatThe width of the Java entity type. -
Constructor Summary
ConstructorsConstructorDescriptionEntityTypeBase(float width, float height, float offset, List<EntityMetadataTranslator<? super T, ?, ?>> translators) -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Entity>
EntityTypeBase.Builder<T>baseBuilder(Class<T> clazz) static <T extends Entity>
EntityTypeBase.Builder<T>baseInherited(Class<T> clazz, EntityTypeBase<? super T> parent) protected booleanbooleaninthashCode()floatheight()The height of the Java entity typefloatoffset()The vertical offset for the default Bedrock entity.toString()<M> voidtranslateMetadata(T entity, org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.EntityMetadata<M, ? extends org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.MetadataType<M>> metadata) List<EntityMetadataTranslator<? super T,?, ?>> floatwidth()The width of the Java entity type.
-
Field Details
-
width
protected final float widthThe width of the Java entity type. -
height
protected final float heightThe height of the Java entity type -
offset
protected final float offsetThe vertical offset for the default Bedrock entity. -
translators
-
-
Constructor Details
-
EntityTypeBase
public EntityTypeBase(float width, float height, float offset, List<EntityMetadataTranslator<? super T, ?, ?>> translators)
-
-
Method Details
-
baseBuilder
-
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
-
canEqual
-
hashCode
public int hashCode() -
toString
-
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
-