mirror of
https://github.com/Minestom/Minestom.git
synced 2024-06-27 15:05:17 +02:00
18 lines
437 B
Java
18 lines
437 B
Java
|
package net.minestom.server.item;
|
||
|
|
||
|
import net.minestom.server.registry.Registry;
|
||
|
import org.jetbrains.annotations.NotNull;
|
||
|
|
||
|
final class EnchantmentImpl implements Enchantment {
|
||
|
private final Registry.EnchantmentEntry registry;
|
||
|
|
||
|
EnchantmentImpl(Registry.EnchantmentEntry registry) {
|
||
|
this.registry = registry;
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public @NotNull Registry.EnchantmentEntry registry() {
|
||
|
return registry;
|
||
|
}
|
||
|
}
|