Package org.geysermc.geyser.entity
Class VanillaEntityType<T extends Entity>
java.lang.Object
org.geysermc.geyser.entity.EntityTypeBase<T>
org.geysermc.geyser.entity.EntityTypeDefinition<T>
org.geysermc.geyser.entity.VanillaEntityType<T>
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.geysermc.geyser.entity.EntityTypeBase
height, offset, translators, width -
Constructor Summary
ConstructorsConstructorDescriptionVanillaEntityType(EntityFactory<T> factory, GeyserEntityType entityType, float width, float height, float offset, BedrockEntityDefinition bedrockDefinition, List<EntityMetadataTranslator<? super T, ?, ?>> translators) -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Entity>
VanillaEntityType.Builder<T> builder(EntityFactory<T> factory) protected booleanbooleaninthashCode()static <T extends Entity>
VanillaEntityType.Builder<T> inherited(EntityFactory<T> factory, EntityTypeBase<? super T> parent) booleanis(org.geysermc.mcprotocollib.protocol.data.game.entity.type.EntityType builtin) toString()Methods inherited from class org.geysermc.geyser.entity.EntityTypeDefinition
defaultBedrockDefinition, factory, typeMethods inherited from class org.geysermc.geyser.entity.EntityTypeBase
baseBuilder, baseInherited, height, offset, translateMetadata, translators, width
-
Constructor Details
-
VanillaEntityType
public VanillaEntityType(EntityFactory<T> factory, GeyserEntityType entityType, float width, float height, float offset, BedrockEntityDefinition bedrockDefinition, List<EntityMetadataTranslator<? super T, ?, ?>> translators)
-
-
Method Details
-
is
public boolean is(org.geysermc.mcprotocollib.protocol.data.game.entity.type.EntityType builtin) - Specified by:
isin classEntityTypeDefinition<T extends Entity>
-
builder
-
inherited
public static <T extends Entity> VanillaEntityType.Builder<T> inherited(EntityFactory<T> factory, EntityTypeBase<? super T> parent) -
entityType
-
equals
- Overrides:
equalsin classEntityTypeDefinition<T extends Entity>
-
canEqual
- Overrides:
canEqualin classEntityTypeDefinition<T extends Entity>
-
hashCode
public int hashCode()- Overrides:
hashCodein classEntityTypeDefinition<T extends Entity>
-
toString
- Overrides:
toStringin classEntityTypeDefinition<T extends Entity>
-