Package org.geysermc.geyser.entity
Class EntityTypeDefinition<T extends Entity>
java.lang.Object
org.geysermc.geyser.entity.EntityTypeBase<T>
org.geysermc.geyser.entity.EntityTypeDefinition<T>
- Type Parameters:
T- the entity type this definition represents
- Direct Known Subclasses:
VanillaEntityType
Represents data for an entity. This includes the default bedrock entity definition, as well as the list of Java entity
metadata translators needed to translate the properties sent from the server. The translators are structured in such
a way that inserting a new one (for example in version updates) is convenient.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.geysermc.geyser.entity.EntityTypeBase
height, offset, translators, width -
Constructor Summary
ConstructorsConstructorDescriptionEntityTypeDefinition(EntityFactory<T> factory, GeyserEntityType type, float width, float height, float offset, BedrockEntityDefinition defaultBedrockDefinition, List<EntityMetadataTranslator<? super T, ?, ?>> translators) -
Method Summary
Methods inherited from class org.geysermc.geyser.entity.EntityTypeBase
baseBuilder, baseInherited, height, offset, translateMetadata, translators, width
-
Constructor Details
-
EntityTypeDefinition
public EntityTypeDefinition(EntityFactory<T> factory, GeyserEntityType type, float width, float height, float offset, BedrockEntityDefinition defaultBedrockDefinition, List<EntityMetadataTranslator<? super T, ?, ?>> translators)
-
-
Method Details
-
is
public abstract boolean is(org.geysermc.mcprotocollib.protocol.data.game.entity.type.EntityType EntityType) -
factory
-
type
-
defaultBedrockDefinition
-
equals
- Overrides:
equalsin classEntityTypeBase<T extends Entity>
-
canEqual
- Overrides:
canEqualin classEntityTypeBase<T extends Entity>
-
hashCode
public int hashCode()- Overrides:
hashCodein classEntityTypeBase<T extends Entity>
-
toString
- Overrides:
toStringin classEntityTypeBase<T extends Entity>
-