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) |
shouldSyncTagToClientaddPropertyGetter, appendStacks, appendTooltip, asItem, byRawId, canMine, canRepair, finishUsing, fromBlock, getEnchantability, getFoodComponent, getGroup, getMaxCount, getMaxDamage, getMaxUseTime, getMiningSpeed, getModifiers, getName, getName, getOrCreateTranslationKey, getPropertyGetter, getRarity, getRawId, getRecipeRemainder, getStackForRender, getTranslationKey, getTranslationKey, getUseAction, hasEnchantmentGlint, hasPropertyGetters, hasRecipeRemainder, inventoryTick, isDamageable, isEffectiveOn, isEnchantable, isFood, isIn, isIn, isNetworkSynced, isUsedOnRelease, onCraft, onStoppedUsing, postHit, postMine, postProcessTag, rayTrace, toString, usageTick, useOnEntitypublic 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.