Interface MappingData

  • All Known Implementing Classes:
    MappingDataBase

    public interface MappingData
    • Method Detail

      • 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:
        java.lang.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:
        java.lang.NullPointerException - if this mappingdata does not hold block mappings
      • 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:
        java.lang.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:
        java.lang.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:
        java.lang.NullPointerException - if this mappingdata does not hold particle mappings
      • getTags

        @Nullable java.util.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
      • getBlockMappings

        @Nullable Mappings getBlockMappings()
      • getBlockStateMappings

        @Nullable Mappings getBlockStateMappings()
      • getSoundMappings

        @Nullable Mappings getSoundMappings()
      • getStatisticsMappings

        @Nullable Mappings getStatisticsMappings()