public class ReadOnlyMemoryModuleItem extends ModuleItem
| Constructor and Description |
|---|
ReadOnlyMemoryModuleItem(net.minecraft.item.Item.Settings builder) |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
loadFromNBT(net.minecraft.nbt.CompoundTag 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.
|
static void |
saveToStack(net.minecraft.item.ItemStack stack,
byte[] data)
Save the specified ROM data to the specified item stack.
|
net.minecraft.util.TypedActionResult<net.minecraft.item.ItemStack> |
use(net.minecraft.world.World world,
net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.Hand hand) |
net.minecraft.util.ActionResult |
useOnBlock(net.minecraft.item.ItemUsageContext context) |
requiresClientSyncaddProperty, addStacksForDisplay, beforeBlockBreak, buildTooltip, byRawId, canDamage, canRepair, getAttributeModifiers, getBlockBreakingSpeed, getDefaultStack, getDurability, getEnchantability, getHitResult, getItem, getItemFromBlock, getItemGroup, getMaxAmount, getMaxUseTime, getOrCreateTranslationKey, getProperty, getRarity, getRawIdByItem, getRecipeRemainder, getTextComponent, getTranslatedNameTrimmed, getTranslationKey, getTranslationKey, getUseAction, hasEnchantmentGlint, hasProperties, hasRecipeRemainder, interactWithEntity, isEffectiveOn, isInItemGroup, isMap, isTool, matches, method_7838, method_7852, onBlockBroken, onCrafted, onEntityDamaged, onEntityTick, onItemFinishedUsing, onItemStopUsing, onTagDeserializedpublic ReadOnlyMemoryModuleItem(net.minecraft.item.Item.Settings builder)
public net.minecraft.util.TypedActionResult<net.minecraft.item.ItemStack> use(net.minecraft.world.World world,
net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.Hand hand)
use in class net.minecraft.item.Itempublic net.minecraft.util.ActionResult useOnBlock(net.minecraft.item.ItemUsageContext context)
useOnBlock in class net.minecraft.item.Itempublic static byte[] loadFromNBT(@Nullable
net.minecraft.nbt.CompoundTag 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.