Interface MappingData
- All Known Implementing Classes:
MappingDataBase
public interface MappingData
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescription@Nullable it.unimi.dsi.fastutil.ints.IntSetSet of block (not block state) ids that had their base type or properties changed.@Nullable FullMappings@Nullable FullMappings@Nullable FullMappings@Nullable Mappings@Nullable Mappings@Nullable FullMappings@Nullable Mappings@Nullable FullMappings@Nullable FullMappings@Nullable FullMappingsReturns item mappings if they also have identifier data present.default @Nullable FullMappingsgetFullMappings(MappingData.MappingType mappingType) @Nullable FullMappings@Nullable BiMappingsReturns item mappings.@Nullable MappingsintgetNewAttributeId(int id) Returns the mapped attribute id, or 0 if unmapped.intgetNewBlockId(int id) Returns the mapped block id, or 0 if unmapped.intgetNewBlockStateId(int id) Returns the mapped block state id, or 0 if unmapped.intgetNewItemId(int id) Returns the mapped item id, or 0 if unmapped.intgetNewParticleId(int id) Returns the mapped particle id, or 0 if unmapped.intgetNewSoundId(int id) Returns the mapped sound id, or 0 if unmapped.intgetOldBlockId(int id) Returns the backwards mapped block id, or 1 if unmapped.intgetOldItemId(int id) Returns the backwards mapped item id, or 1 if unmapped.intgetOldSoundId(int i) Returns the backwards mapped sound id, or 1 if unmapped.@Nullable Mappings@Nullable ParticleMappings@Nullable FullMappings@Nullable Mappings@Nullable MappingsgetTags(RegistryType type) Returns a list of tags to send if present.voidload()Loads the mapping data.
-
Method Details
-
load
void load()Loads the mapping data. -
getNewBlockStateId
int getNewBlockStateId(int id) Returns the mapped block state id, or 0 if unmapped.- Parameters:
id- unmapped block state id- Returns:
- mapped block state id, or 0 if unmapped
- Throws:
NullPointerException- if this mappingdata does not hold block state mappings
-
getNewBlockId
int getNewBlockId(int id) Returns the mapped block id, or 0 if unmapped.- Parameters:
id- unmapped block id- Returns:
- mapped block id, or 0 if unmapped
- Throws:
NullPointerException- if this mappingdata does not hold block mappings
-
getOldBlockId
int getOldBlockId(int id) Returns the backwards mapped block id, or 1 if unmapped.- Parameters:
id- mapped block id- Returns:
- backwards mapped block id, or 1 if unmapped
-
getNewItemId
int getNewItemId(int id) Returns the mapped item id, or 0 if unmapped.- Parameters:
id- unmapped item id- Returns:
- mapped item id, or 0 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 0 if unmapped.- Parameters:
id- unmapped particle id- Returns:
- mapped particle id, or 0 if unmapped
- Throws:
NullPointerException- if this mappingdata does not hold particle mappings
-
getNewAttributeId
int getNewAttributeId(int id) Returns the mapped attribute id, or 0 if unmapped.- Parameters:
id- unmapped attribute id- Returns:
- mapped attribute id, or 0 if unmapped
- Throws:
NullPointerException- if this mappingdata does not hold attribute mappings
-
getNewSoundId
int getNewSoundId(int id) Returns the mapped sound id, or 0 if unmapped.- Parameters:
id- unmapped sound id- Returns:
- mapped sound id, or 0 if unmapped
- Throws:
NullPointerException- if this mappingdata does not hold sound mappings
-
getOldSoundId
int getOldSoundId(int i) Returns the backwards mapped sound id, or 1 if unmapped.- Parameters:
i- mapped sound id- Returns:
- backwards mapped sound id, or 1 if unmapped
-
getTags
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() -
getFullBlockMappings
@Nullable FullMappings getFullBlockMappings() -
getBlockStateMappings
@Nullable Mappings getBlockStateMappings() -
getSoundMappings
@Nullable Mappings getSoundMappings() -
getFullSoundMappings
@Nullable FullMappings getFullSoundMappings() -
getStatisticsMappings
@Nullable Mappings getStatisticsMappings() -
getMenuMappings
@Nullable Mappings getMenuMappings() -
getEnchantmentMappings
@Nullable Mappings getEnchantmentMappings() -
getPaintingMappings
@Nullable Mappings getPaintingMappings() -
getBlockEntityMappings
@Nullable FullMappings getBlockEntityMappings() -
getAttributeMappings
@Nullable FullMappings getAttributeMappings() -
getEntityMappings
@Nullable FullMappings getEntityMappings() -
getArgumentTypeMappings
@Nullable FullMappings getArgumentTypeMappings() -
getRecipeSerializerMappings
@Nullable FullMappings getRecipeSerializerMappings() -
getDataComponentSerializerMappings
@Nullable FullMappings getDataComponentSerializerMappings() -
getFullMappings
-
changedBlocks
@Nullable it.unimi.dsi.fastutil.ints.IntSet changedBlocks()Set of block (not block state) ids that had their base type or properties changed.- Returns:
- set of changed block ids, or null if not tracked/none are present
-