Interface CodecContext.RegistryAccess

Enclosing interface:
CodecContext

public static interface CodecContext.RegistryAccess
  • Method Details

    • item

      Key item(int id)
    • attributeModifier

      Key attributeModifier(int id)
    • dataComponentType

      Key dataComponentType(int id)
    • entity

      Key entity(int id)
    • blockEntity

      Key blockEntity(int id)
    • sound

      Key sound(int id)
    • key

      Key key(MappingData.MappingType mappingType, int id)
      Returns the key for a stored mapping type and its numeric id.
      Parameters:
      mappingType - mapping type
      id - numeric id
      Returns:
      the key
    • id

      int id(MappingData.MappingType mappingType, String identifier)
      Returns the numeric id for a stored mapping type and its identifier.
      Parameters:
      mappingType - mapping type
      identifier - identifier
      Returns:
      the numeric id, or -1 if not found
    • of

      static CodecContext.RegistryAccess of(Protocol<?,?,?,?> protocol)
    • registryKey

      Key registryKey(String registry, int id)
      Returns the key for a client-synchronized registry element.
      Parameters:
      registry - registry key
      id - numeric id
      Returns:
      the key
    • withMapped

      CodecContext.RegistryAccess withMapped(boolean mapped)