Mirror von
https://github.com/ViaVersion/ViaBackwards.git
synchronisiert 2024-11-20 06:50:10 +01:00
Expose EntityRewriterBase#alwaysShowOriginalMobName (#705)
Dieser Commit ist enthalten in:
Ursprung
4e856ef396
Commit
9d1a5a05f5
@ -103,12 +103,16 @@ public abstract class EntityRewriterBase<C extends ClientboundPacketType, T exte
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void addDisplayVisibilityMeta(List<Metadata> metadataList) {
|
private void addDisplayVisibilityMeta(List<Metadata> metadataList) {
|
||||||
if (ViaBackwards.getConfig().alwaysShowOriginalMobName()) {
|
if (alwaysShowOriginalMobName()) {
|
||||||
removeMeta(displayVisibilityIndex, metadataList);
|
removeMeta(displayVisibilityIndex, metadataList);
|
||||||
metadataList.add(new Metadata(displayVisibilityIndex, displayVisibilityMetaType, true));
|
metadataList.add(new Metadata(displayVisibilityIndex, displayVisibilityMetaType, true));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected boolean alwaysShowOriginalMobName() {
|
||||||
|
return ViaBackwards.getConfig().alwaysShowOriginalMobName();
|
||||||
|
}
|
||||||
|
|
||||||
protected @Nullable Metadata getMeta(int metaIndex, List<Metadata> metadataList) {
|
protected @Nullable Metadata getMeta(int metaIndex, List<Metadata> metadataList) {
|
||||||
for (Metadata metadata : metadataList) {
|
for (Metadata metadata : metadataList) {
|
||||||
if (metadata.id() == metaIndex) {
|
if (metadata.id() == metaIndex) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren