Interface MappingData
- All Known Implementing Classes:
MappingDataBase
public interface MappingData
-
Method Summary
Modifier and TypeMethodDescription@Nullable FullMappings
@Nullable Mappings
@Nullable Mappings
@Nullable Mappings
@Nullable Mappings
@Nullable FullMappings
@Nullable Mappings
@Nullable FullMappings
@Nullable FullMappings
Returns item mappings if they also have identifier data present.@Nullable BiMappings
Returns item mappings.@Nullable Mappings
int
getNewAttributeId
(int id) int
getNewBlockId
(int id) Returns the mapped block id, or -1 if unmapped.int
getNewBlockStateId
(int id) Returns the mapped block state id, or -1 if unmapped.int
getNewItemId
(int id) Returns the mapped item id, or -1 if unmapped.int
getNewParticleId
(int id) Returns the mapped particle id, or -1 if unmapped.int
getNewSoundId
(int id) int
getOldBlockId
(int id) int
getOldItemId
(int id) Returns the backwards mapped item id, or -1 if unmapped.int
getOldSoundId
(int i) @Nullable Mappings
@Nullable ParticleMappings
@Nullable FullMappings
@Nullable Mappings
@Nullable Mappings
getTags
(RegistryType type) Returns a list of tags to send if present.void
load()
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 -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) -
getNewSoundId
int getNewSoundId(int id) -
getOldSoundId
int getOldSoundId(int i) -
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() -
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()
-