Fix abstract arrow entity metadata (#5149)

This commit is contained in:
Eclipse 2024-11-13 15:47:39 +00:00 committed by GitHub
parent fd58c729d8
commit 0750990e4f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -492,6 +492,7 @@ public final class EntityDefinitions {
EntityDefinition<AbstractArrowEntity> abstractArrowBase = EntityDefinition.inherited(AbstractArrowEntity::new, entityBase) EntityDefinition<AbstractArrowEntity> abstractArrowBase = EntityDefinition.inherited(AbstractArrowEntity::new, entityBase)
.addTranslator(MetadataType.BYTE, AbstractArrowEntity::setArrowFlags) .addTranslator(MetadataType.BYTE, AbstractArrowEntity::setArrowFlags)
.addTranslator(null) // "Piercing level" .addTranslator(null) // "Piercing level"
.addTranslator(null) // If the arrow is in the ground
.build(); .build();
ARROW = EntityDefinition.inherited(ArrowEntity::new, abstractArrowBase) ARROW = EntityDefinition.inherited(ArrowEntity::new, abstractArrowBase)
.type(EntityType.ARROW) .type(EntityType.ARROW)