public class ItemModuleReadOnlyMemory extends ItemModule
| Constructor and Description |
|---|
ItemModuleReadOnlyMemory(net.minecraft.item.Item.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
loadFromNBT(net.minecraft.nbt.NBTTagCompound nbt)
Load ROM data from the specified NBT tag.
|
static byte[] |
loadFromStack(net.minecraft.item.ItemStack stack)
Load ROM data from the specified item stack.
|
net.minecraft.util.ActionResult<net.minecraft.item.ItemStack> |
onItemRightClick(net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.util.EnumHand hand) |
static void |
saveToStack(net.minecraft.item.ItemStack stack,
byte[] data)
Save the specified ROM data to the specified item stack.
|
getShareTagaddInformation, addPropertyOverride, asItem, canHarvestBlock, canPlayerBreakBlockWhileHolding, getContainerItem, getCreativeTab, getDefaultInstance, getDestroySpeed, getDisplayName, getIdFromItem, getIsRepairable, getItemAttributeModifiers, getItemById, getItemEnchantability, getItemFromBlock, getItemStackLimit, getItemUseAction, getMaxDamage, getMaxItemUseDuration, getName, getPropertyGetter, getRarity, getSubItems, getTranslationKey, getTranslationKey, hasContainerItem, hasCustomProperties, hasEffect, hitEntity, isDamageable, isEnchantable, isIn, isInCreativeTab, isMap, itemInteractionForEntity, makeUnlocalizedName, onBlockDestroyed, onCreated, onItemUse, onItemUseFinish, onPlayerStoppedUsing, onUpdate, rayTrace, registerItem, registerItem, registerItemBlock, registerItemBlock, registerItemBlock, registerItemBlock, registerItems, updateItemStackNBTpublic ItemModuleReadOnlyMemory(net.minecraft.item.Item.Builder builder)
public net.minecraft.util.ActionResult<net.minecraft.item.ItemStack> onItemRightClick(net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.util.EnumHand hand)
onItemRightClick in class net.minecraft.item.Itempublic static byte[] loadFromNBT(@Nullable
net.minecraft.nbt.NBTTagCompound nbt)
nbt - the tag to load the data from.public static byte[] loadFromStack(net.minecraft.item.ItemStack stack)
stack - the item stack to load the data from.public static void saveToStack(net.minecraft.item.ItemStack stack,
byte[] data)
stack - the item stack to save the data to.data - the data to save to the item stack.