public class MappingRegistry
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
java.util.HashMap<net.minecraft.block.Block,java.lang.Integer> |
blockToId |
java.util.HashMap<java.lang.Class<? extends net.minecraft.entity.Entity>,java.lang.Integer> |
entityToId |
java.util.ArrayList<net.minecraft.block.Block> |
idToBlock |
java.util.ArrayList<java.lang.Class<? extends net.minecraft.entity.Entity>> |
idToEntity |
java.util.ArrayList<net.minecraft.item.Item> |
idToItem |
java.util.HashMap<net.minecraft.item.Item,java.lang.Integer> |
itemToId |
| Constructor and Description |
|---|
MappingRegistry() |
| Modifier and Type | Method and Description |
|---|---|
int |
blockIdToRegistry(int id) |
int |
blockIdToWorld(int id) |
net.minecraft.block.Block |
getBlockForId(int id) |
java.lang.Class<? extends net.minecraft.entity.Entity> |
getEntityForId(int id) |
int |
getIdForBlock(net.minecraft.block.Block block) |
int |
getIdForEntity(java.lang.Class<? extends net.minecraft.entity.Entity> entity) |
int |
getIdForItem(net.minecraft.item.Item item) |
net.minecraft.item.Item |
getItemForId(int id) |
int |
itemIdToRegistry(int id) |
int |
itemIdToWorld(int id) |
void |
read(net.minecraft.nbt.NBTTagCompound nbt) |
void |
scanAndTranslateStacksToRegistry(net.minecraft.nbt.NBTTagCompound nbt) |
void |
scanAndTranslateStacksToWorld(net.minecraft.nbt.NBTTagCompound nbt) |
void |
stackToRegistry(net.minecraft.nbt.NBTTagCompound nbt)
Relocates a stack nbt from the world referential to the registry
referential.
|
void |
stackToWorld(net.minecraft.nbt.NBTTagCompound nbt)
Relocates a stack nbt from the registry referential to the world
referential.
|
void |
write(net.minecraft.nbt.NBTTagCompound nbt) |
public java.util.HashMap<net.minecraft.block.Block,java.lang.Integer> blockToId
public java.util.ArrayList<net.minecraft.block.Block> idToBlock
public java.util.HashMap<net.minecraft.item.Item,java.lang.Integer> itemToId
public java.util.ArrayList<net.minecraft.item.Item> idToItem
public java.util.HashMap<java.lang.Class<? extends net.minecraft.entity.Entity>,java.lang.Integer> entityToId
public java.util.ArrayList<java.lang.Class<? extends net.minecraft.entity.Entity>> idToEntity
public net.minecraft.item.Item getItemForId(int id)
throws MappingNotFoundException
MappingNotFoundExceptionpublic int getIdForItem(net.minecraft.item.Item item)
public int itemIdToRegistry(int id)
public int itemIdToWorld(int id)
throws MappingNotFoundException
MappingNotFoundExceptionpublic net.minecraft.block.Block getBlockForId(int id)
throws MappingNotFoundException
MappingNotFoundExceptionpublic int getIdForBlock(net.minecraft.block.Block block)
public int blockIdToRegistry(int id)
public int blockIdToWorld(int id)
throws MappingNotFoundException
MappingNotFoundExceptionpublic java.lang.Class<? extends net.minecraft.entity.Entity> getEntityForId(int id)
throws MappingNotFoundException
MappingNotFoundExceptionpublic int getIdForEntity(java.lang.Class<? extends net.minecraft.entity.Entity> entity)
public void stackToRegistry(net.minecraft.nbt.NBTTagCompound nbt)
public void stackToWorld(net.minecraft.nbt.NBTTagCompound nbt)
throws MappingNotFoundException
MappingNotFoundExceptionpublic void scanAndTranslateStacksToRegistry(net.minecraft.nbt.NBTTagCompound nbt)
public void scanAndTranslateStacksToWorld(net.minecraft.nbt.NBTTagCompound nbt)
throws MappingNotFoundException
MappingNotFoundExceptionpublic void write(net.minecraft.nbt.NBTTagCompound nbt)
public void read(net.minecraft.nbt.NBTTagCompound nbt)