Interface VillagerProfession
- All Superinterfaces:
Holder<VillagerProfession>, 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 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 VillagerProfessiondefault intid()default Keykey()registry()Deprecated, for removal: This API element is subject to removal in a future version.static Collection<VillagerProfession> values()default @Nullable SoundEventReturns the sound played while a villager works in this profession.Methods inherited from interface StaticProtocolObject
name, registryKey
-
Field Details
-
NETWORK_TYPE
-
NBT_TYPE
-
NONE
-
ARMORER
-
BUTCHER
-
CARTOGRAPHER
-
CLERIC
-
FARMER
-
FISHERMAN
-
FLETCHER
-
LEATHERWORKER
-
LIBRARIAN
-
MASON
-
NITWIT
-
SHEPHERD
-
TOOLSMITH
-
WEAPONSMITH
-
-
Method Details
-
key
- Specified by:
keyin interfaceKeyed- Specified by:
keyin interfaceStaticProtocolObject<VillagerProfession>
-
id
default int id()- Specified by:
idin interfaceStaticProtocolObject<VillagerProfession>
-
registry
Deprecated, for removal: This API element is subject to removal in a future version.use the direct accessors onVillagerProfessionReturns the legacy registry data backing this profession.- Specified by:
registryin interfaceStaticProtocolObject<VillagerProfession>- Returns:
- the legacy registry data
-
workSound
Returns the sound played while a villager works in this profession.- Returns:
- the work sound, or
nullwhen absent
-
values
-
fromKey
-
fromKey
-
fromId
-
VillagerProfession