Search in sources :

Example 1 with EnchantmentRewriter

use of com.viaversion.viabackwards.api.rewriters.EnchantmentRewriter in project ViaBackwards by ViaVersion.

the class BlockItemPackets1_16 method registerRewrites.

@Override
protected void registerRewrites() {
    enchantmentRewriter = new EnchantmentRewriter(this);
    enchantmentRewriter.registerEnchantment("minecraft:soul_speed", "§7Soul Speed");
}
Also used : EnchantmentRewriter(com.viaversion.viabackwards.api.rewriters.EnchantmentRewriter)

Example 2 with EnchantmentRewriter

use of com.viaversion.viabackwards.api.rewriters.EnchantmentRewriter in project ViaBackwards by ViaVersion.

the class BlockItemPackets1_14 method registerRewrites.

@Override
protected void registerRewrites() {
    enchantmentRewriter = new EnchantmentRewriter(this, false);
    enchantmentRewriter.registerEnchantment("minecraft:multishot", "§7Multishot");
    enchantmentRewriter.registerEnchantment("minecraft:quick_charge", "§7Quick Charge");
    enchantmentRewriter.registerEnchantment("minecraft:piercing", "§7Piercing");
}
Also used : EnchantmentRewriter(com.viaversion.viabackwards.api.rewriters.EnchantmentRewriter)

Aggregations

EnchantmentRewriter (com.viaversion.viabackwards.api.rewriters.EnchantmentRewriter)2