public interface MappingData
Modifier and Type | Method and Description |
---|---|
@Nullable FullMappings |
getArgumentTypeMappings() |
@Nullable Mappings |
getBlockEntityMappings() |
@Nullable Mappings |
getBlockMappings() |
@Nullable Mappings |
getBlockStateMappings() |
@Nullable Mappings |
getEnchantmentMappings() |
@Nullable FullMappings |
getEntityMappings() |
@Nullable BiMappings |
getItemMappings() |
@Nullable Mappings |
getMenuMappings() |
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 |
getOldItemId(int id)
Returns the backwards mapped item id, or -1 if unmapped.
|
@Nullable Mappings |
getPaintingMappings() |
@Nullable ParticleMappings |
getParticleMappings() |
@Nullable Mappings |
getSoundMappings() |
@Nullable Mappings |
getStatisticsMappings() |
@Nullable java.util.List<TagData> |
getTags(RegistryType type)
Returns a list of tags to send if present.
|
void |
load()
Loads the mapping data.
|
void load()
int getNewBlockStateId(int id)
id
- unmapped block state idjava.lang.NullPointerException
- if this mappingdata does not hold block state mappingsint getNewBlockId(int id)
id
- unmapped block idjava.lang.NullPointerException
- if this mappingdata does not hold block mappingsint getNewItemId(int id)
id
- unmapped item idjava.lang.NullPointerException
- if this mappingdata does not hold item mappingsint getOldItemId(int id)
id
- mapped item idjava.lang.NullPointerException
- if this mappingdata does not hold item mappingsint getNewParticleId(int id)
id
- unmapped particle idjava.lang.NullPointerException
- if this mappingdata does not hold particle mappings@Nullable java.util.List<TagData> getTags(RegistryType type)
type
- registry tag type@Nullable BiMappings getItemMappings()
@Nullable ParticleMappings getParticleMappings()
@Nullable Mappings getBlockMappings()
@Nullable Mappings getBlockEntityMappings()
@Nullable Mappings getBlockStateMappings()
@Nullable Mappings getSoundMappings()
@Nullable Mappings getStatisticsMappings()
@Nullable Mappings getMenuMappings()
@Nullable Mappings getEnchantmentMappings()
@Nullable FullMappings getEntityMappings()
@Nullable FullMappings getArgumentTypeMappings()
@Nullable Mappings getPaintingMappings()