Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-11-20 06:50:09 +01:00
Fix text displays on 1.20.2
It seems like 1.20.2 added one more field to base displays (https://wiki.vg/Entity_metadata#Display), and a few more to text displays: https://wiki.vg/Entity_metadata#Text_Display (#4268)
Dieser Commit ist enthalten in:
Ursprung
8d2ebcf69b
Commit
121ca11db2
@ -299,8 +299,9 @@ public final class EntityDefinitions {
|
|||||||
.build();
|
.build();
|
||||||
|
|
||||||
EntityDefinition<Entity> displayBase = EntityDefinition.inherited(entityBase.factory(), entityBase)
|
EntityDefinition<Entity> displayBase = EntityDefinition.inherited(entityBase.factory(), entityBase)
|
||||||
.addTranslator(null) // Interpolation start ticks
|
.addTranslator(null) // Interpolation delay
|
||||||
.addTranslator(null) // Interpolation duration ID
|
.addTranslator(null) // Transformation interpolation duration
|
||||||
|
.addTranslator(null) // Position/Rotation interpolation duration
|
||||||
.addTranslator(null) // Translation
|
.addTranslator(null) // Translation
|
||||||
.addTranslator(null) // Scale
|
.addTranslator(null) // Scale
|
||||||
.addTranslator(null) // Left rotation
|
.addTranslator(null) // Left rotation
|
||||||
@ -318,6 +319,10 @@ public final class EntityDefinitions {
|
|||||||
.type(EntityType.TEXT_DISPLAY)
|
.type(EntityType.TEXT_DISPLAY)
|
||||||
.identifier("minecraft:armor_stand")
|
.identifier("minecraft:armor_stand")
|
||||||
.addTranslator(MetadataType.CHAT, TextDisplayEntity::setText)
|
.addTranslator(MetadataType.CHAT, TextDisplayEntity::setText)
|
||||||
|
.addTranslator(null) // Line width
|
||||||
|
.addTranslator(null) // Background color
|
||||||
|
.addTranslator(null) // Text opacity
|
||||||
|
.addTranslator(null) // Bit mask
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
INTERACTION = EntityDefinition.inherited(InteractionEntity::new, entityBase)
|
INTERACTION = EntityDefinition.inherited(InteractionEntity::new, entityBase)
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren