3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-12-27 08:30:09 +01:00

Update wild wolf texture field name

Dieser Commit ist enthalten in:
Nassim Jahnke 2024-03-20 18:57:35 +01:00
Ursprung 4849ca0745
Commit 0b7fdd4c69
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: EF6771C01F6EF02F
2 geänderte Dateien mit 18 neuen und 3 gelöschten Zeilen

Datei anzeigen

@ -104,7 +104,7 @@ public final class EntityPacketRewriter1_20_5 extends EntityRewriter<Clientbound
final PacketWrapper wolfVariantsPacket = wrapper.create(ClientboundConfigurationPackets1_20_5.REGISTRY_DATA);
wolfVariantsPacket.write(Type.STRING, "minecraft:wolf_variant");
final CompoundTag paleWolf = new CompoundTag();
paleWolf.putString("texture", "textures/entity/wolf/wolf.png");
paleWolf.putString("wild_texture", "textures/entity/wolf/wolf.png");
paleWolf.putString("tame_texture", "textures/entity/wolf/wolf_tame.png");
paleWolf.putString("angry_texture", "textures/entity/wolf/wolf_angry.png");
paleWolf.put("biomes", new ListTag<>(StringTag.class));

Datei anzeigen

@ -435,9 +435,19 @@ final class StructuredDataConverter {
blockStateTag.putString(entry.getKey(), entry.getValue());
}
}));
register(StructuredDataKey.INTANGIBLE_PROJECTILE, (data, tag) -> {
// Nothing
register(StructuredDataKey.HIDE_TOOLTIP, (data, tag) -> {
// Hide everything we can hide
putHideFlag(tag, 0xFF);
});
// Nothing to do for these
noop(StructuredDataKey.INTANGIBLE_PROJECTILE);
noop(StructuredDataKey.MAX_STACK_SIZE);
noop(StructuredDataKey.MAX_DAMAGE);
noop(StructuredDataKey.RARITY);
noop(StructuredDataKey.FOOD);
noop(StructuredDataKey.FIRE_RESISTANT);
noop(StructuredDataKey.TOOL);
}
private static String toItemName(final int id) {
@ -570,6 +580,11 @@ final class StructuredDataConverter {
REWRITERS.put(key, converter);
}
private static <T> void noop(final StructuredDataKey<T> key) {
register(key, (data, tag) -> {
});
}
@FunctionalInterface
interface DataConverter<T> {