Interface MappingData

All Known Implementing Classes:
MappingDataBase

public interface MappingData
  • Method Details

    • load

      void load()
      Loads the mapping data.
    • getNewBlockStateId

      int getNewBlockStateId(int id)
      Returns the mapped block state id, or -1 if unmapped.
      Parameters:
      id - unmapped block state id
      Returns:
      mapped block state id, or -1 if unmapped
      Throws:
      NullPointerException - if this mappingdata does not hold block state mappings
    • getNewBlockId

      int getNewBlockId(int id)
      Returns the mapped block id, or -1 if unmapped.
      Parameters:
      id - unmapped block id
      Returns:
      mapped block id, or -1 if unmapped
      Throws:
      NullPointerException - if this mappingdata does not hold block mappings
    • getOldBlockId

      int getOldBlockId(int id)
    • getNewItemId

      int getNewItemId(int id)
      Returns the mapped item id, or -1 if unmapped.
      Parameters:
      id - unmapped item id
      Returns:
      mapped item id, or -1 if unmapped
      Throws:
      NullPointerException - if this mappingdata does not hold item mappings
    • getOldItemId

      int getOldItemId(int id)
      Returns the backwards mapped item id, or -1 if unmapped.
      Parameters:
      id - mapped item id
      Returns:
      backwards mapped item id, or -1 if unmapped
      Throws:
      NullPointerException - if this mappingdata does not hold item mappings
    • getNewParticleId

      int getNewParticleId(int id)
      Returns the mapped particle id, or -1 if unmapped.
      Parameters:
      id - unmapped particle id
      Returns:
      mapped particle id, or -1 if unmapped
      Throws:
      NullPointerException - if this mappingdata does not hold particle mappings
    • getNewAttributeId

      int getNewAttributeId(int id)
    • getTags

      @Nullable List<TagData> getTags(RegistryType type)
      Returns a list of tags to send if present.
      Parameters:
      type - registry tag type
      Returns:
      list of tags to send if present, else null
    • getItemMappings

      @Nullable BiMappings getItemMappings()
      Returns item mappings.
      Returns:
      item mappings
    • getFullItemMappings

      @Nullable FullMappings getFullItemMappings()
      Returns item mappings if they also have identifier data present.
      Returns:
      item mappings if they also have identifier data present
      See Also:
    • getParticleMappings

      @Nullable ParticleMappings getParticleMappings()
    • getBlockMappings

      @Nullable Mappings getBlockMappings()
    • getBlockEntityMappings

      @Nullable Mappings getBlockEntityMappings()
    • getBlockStateMappings

      @Nullable Mappings getBlockStateMappings()
    • getSoundMappings

      @Nullable Mappings getSoundMappings()
    • getStatisticsMappings

      @Nullable Mappings getStatisticsMappings()
    • getMenuMappings

      @Nullable Mappings getMenuMappings()
    • getEnchantmentMappings

      @Nullable Mappings getEnchantmentMappings()
    • getAttributeMappings

      @Nullable Mappings getAttributeMappings()
    • getPaintingMappings

      @Nullable Mappings getPaintingMappings()
    • getEntityMappings

      @Nullable FullMappings getEntityMappings()
    • getArgumentTypeMappings

      @Nullable FullMappings getArgumentTypeMappings()
    • getRecipeSerializerMappings

      @Nullable FullMappings getRecipeSerializerMappings()
    • getDataComponentSerializerMappings

      @Nullable FullMappings getDataComponentSerializerMappings()