Update wild wolf texture field name

This commit is contained in:
Nassim Jahnke 2024-03-20 18:57:35 +01:00
parent 4849ca0745
commit 0b7fdd4c69
No known key found for this signature in database
GPG Key ID: EF6771C01F6EF02F
2 changed files with 18 additions and 3 deletions

View File

@ -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));

View File

@ -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> {