Update to Minecraft 1.20.5

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot
2024-04-24 01:15:00 +10:00
parent 899f2acb84
commit f3502f6dac
54 changed files with 1814 additions and 741 deletions

View File

@@ -3,6 +3,7 @@ package org.bukkit.enchantments;
import com.google.common.base.Preconditions;
import com.google.common.collect.Lists;
import org.bukkit.Keyed;
import org.bukkit.MinecraftExperimental;
import org.bukkit.NamespacedKey;
import org.bukkit.Registry;
import org.bukkit.Translatable;
@@ -103,7 +104,7 @@ public abstract class Enchantment implements Keyed, Translatable {
/**
* Increases damage against targets when using a sweep attack
*/
public static final Enchantment SWEEPING_EDGE = getEnchantment("sweeping");
public static final Enchantment SWEEPING_EDGE = getEnchantment("sweeping_edge");
/**
* Increases the rate at which you mine/dig
@@ -192,6 +193,24 @@ public abstract class Enchantment implements Keyed, Translatable {
*/
public static final Enchantment PIERCING = getEnchantment("piercing");
/**
* Increases fall damage of maces
*/
@MinecraftExperimental
public static final Enchantment DENSITY = getEnchantment("density");
/**
* Reduces armor effectiveness against maces
*/
@MinecraftExperimental
public static final Enchantment BREACH = getEnchantment("breach");
/**
* Emits wind burst upon hitting enemy
*/
@MinecraftExperimental
public static final Enchantment WIND_BURST = getEnchantment("wind_burst");
/**
* Allows mending the item using experience orbs
*/
@@ -250,8 +269,10 @@ public abstract class Enchantment implements Keyed, Translatable {
* Gets the type of {@link ItemStack} that may fit this Enchantment.
*
* @return Target type of the Enchantment
* @deprecated enchantment groupings are now managed by tags, not categories
*/
@NotNull
@Deprecated
public abstract EnchantmentTarget getItemTarget();
/**
@@ -373,8 +394,8 @@ public abstract class Enchantment implements Keyed, Translatable {
return "bane_of_arthropods";
case "loot_bonus_mobs":
return "looting";
case "sweeping_edge":
return "sweeping";
case "sweeping":
return "sweeping_edge";
case "dig_speed":
return "efficiency";
case "durability":