Interface VillagerProfession
- All Superinterfaces:
Holder<VillagerProfession>
,net.kyori.adventure.key.Keyed
,RegistryKey<VillagerProfession>
,StaticProtocolObject<VillagerProfession>
- All Known Implementing Classes:
VillagerProfessionImpl
public sealed interface VillagerProfession
extends StaticProtocolObject<VillagerProfession>
permits VillagerProfessionImpl
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minestom.server.registry.Holder
Holder.Direct<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final VillagerProfession
static final VillagerProfession
static final VillagerProfession
static final VillagerProfession
static final VillagerProfession
static final VillagerProfession
static final VillagerProfession
static final VillagerProfession
static final VillagerProfession
static final VillagerProfession
static final Codec
<VillagerProfession> static final NetworkBuffer.Type
<VillagerProfession> static final VillagerProfession
static final VillagerProfession
static final VillagerProfession
static final VillagerProfession
static final VillagerProfession
-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable VillagerProfession
fromId
(int id) static @Nullable VillagerProfession
static @Nullable VillagerProfession
fromKey
(@NotNull net.kyori.adventure.key.Key key) default int
id()
default @NotNull net.kyori.adventure.key.Key
key()
registry()
static @NotNull Collection
<@NotNull VillagerProfession> values()
Methods inherited from interface net.minestom.server.registry.Holder
asKey, asValue, isDirect, resolve, unwrap
Methods inherited from interface net.minestom.server.registry.StaticProtocolObject
name
-
Field Details
-
NETWORK_TYPE
-
NBT_TYPE
-
NONE
-
ARMORER
-
BUTCHER
-
CARTOGRAPHER
-
CLERIC
-
FARMER
-
FISHERMAN
-
FLETCHER
-
LEATHERWORKER
-
LIBRARIAN
-
MASON
-
NITWIT
-
SHEPHERD
-
TOOLSMITH
-
WEAPONSMITH
-
-
Method Details
-
key
@NotNull default @NotNull net.kyori.adventure.key.Key key()- Specified by:
key
in interfacenet.kyori.adventure.key.Keyed
- Specified by:
key
in interfaceStaticProtocolObject<VillagerProfession>
-
id
default int id()- Specified by:
id
in interfaceStaticProtocolObject<VillagerProfession>
-
registry
- Specified by:
registry
in interfaceStaticProtocolObject<VillagerProfession>
-
values
-
fromKey
-
fromKey
@Nullable static @Nullable VillagerProfession fromKey(@NotNull @NotNull net.kyori.adventure.key.Key key) -
fromId
-