All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.minecraft.server.EnchantmentKnockback Maven / Gradle / Ivy

package net.minecraft.server;

public class EnchantmentKnockback extends Enchantment {

  protected EnchantmentKnockback(int i, MinecraftKey minecraftkey, int j) {
    super(i, minecraftkey, j, EnchantmentSlotType.WEAPON);
    this.c("knockback");
  }

  public int a(int i) {
    return 5 + 20 * (i - 1);
  }

  public int b(int i) {
    return super.a(i) + 50;
  }

  public int getMaxLevel() {
    return 2;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy