Package net.minestom.server.entity
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 VillagerProfessionstatic final VillagerProfessionstatic final VillagerProfessionstatic final VillagerProfessionstatic final VillagerProfessionstatic final VillagerProfessionstatic final VillagerProfessionstatic final VillagerProfessionstatic final VillagerProfessionstatic final VillagerProfessionstatic final Codec<VillagerProfession> static final NetworkBuffer.Type<VillagerProfession> static final VillagerProfessionstatic final VillagerProfessionstatic final VillagerProfessionstatic final VillagerProfessionstatic final VillagerProfession -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable VillagerProfessionfromId(int id) static @Nullable VillagerProfessionstatic @Nullable VillagerProfessionfromKey(@NotNull net.kyori.adventure.key.Key key) default intid()default @NotNull net.kyori.adventure.key.Keykey()registry()static @NotNull Collection<@NotNull VillagerProfession> values()Methods inherited from interface net.minestom.server.registry.Holder
asKey, asValue, isDirect, resolve, unwrapMethods 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:
keyin interfacenet.kyori.adventure.key.Keyed- Specified by:
keyin interfaceStaticProtocolObject<VillagerProfession>
-
id
default int id()- Specified by:
idin interfaceStaticProtocolObject<VillagerProfession>
-
registry
- Specified by:
registryin interfaceStaticProtocolObject<VillagerProfession>
-
values
-
fromKey
-
fromKey
@Nullable static @Nullable VillagerProfession fromKey(@NotNull @NotNull net.kyori.adventure.key.Key key) -
fromId
-