Interface CodecContext.RegistryAccess
- Enclosing interface:
- CodecContext
public static interface CodecContext.RegistryAccess
-
Method Summary
Modifier and TypeMethodDescriptionattributeModifier(int id) blockEntity(int id) dataComponentType(int id) entity(int id) intid(MappingData.MappingType mappingType, String identifier) Returns the numeric id for a stored mapping type and its identifier.item(int id) key(MappingData.MappingType mappingType, int id) Returns the key for a stored mapping type and its numeric id.static CodecContext.RegistryAccessregistryKey(String registry, int id) Returns the key for a client-synchronized registry element.sound(int id) withMapped(boolean mapped)
-
Method Details
-
item
-
attributeModifier
-
dataComponentType
-
entity
-
blockEntity
-
sound
-
key
Returns the key for a stored mapping type and its numeric id.- Parameters:
mappingType- mapping typeid- numeric id- Returns:
- the key
-
id
Returns the numeric id for a stored mapping type and its identifier.- Parameters:
mappingType- mapping typeidentifier- identifier- Returns:
- the numeric id, or -1 if not found
-
of
-
registryKey
Returns the key for a client-synchronized registry element.- Parameters:
registry- registry keyid- numeric id- Returns:
- the key
-
withMapped
-