public class BackpackItem extends info.u_team.u_team_core.item.UItem implements IBackpack, info.u_team.u_team_core.api.dye.IDyeableItem
| Constructor and Description |
|---|
BackpackItem(Backpack backpack) |
| Modifier and Type | Method and Description |
|---|---|
void |
fillItemGroup(net.minecraft.item.ItemGroup group,
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> items) |
Backpack |
getBackpack() |
int |
getDefaultColor() |
net.minecraft.nbt.CompoundNBT |
getShareTag(net.minecraft.item.ItemStack stack) |
boolean |
onDroppedByPlayer(net.minecraft.item.ItemStack item,
net.minecraft.entity.player.PlayerEntity player) |
net.minecraft.util.ActionResult<net.minecraft.item.ItemStack> |
onItemRightClick(net.minecraft.world.World world,
net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.Hand hand) |
void |
open(net.minecraft.entity.player.ServerPlayerEntity player,
net.minecraft.item.ItemStack stack,
int selectedSlot) |
boolean |
shouldCauseReequipAnimation(net.minecraft.item.ItemStack oldStack,
net.minecraft.item.ItemStack newStack,
boolean slotChanged) |
addInformation, asItem, canHarvestBlock, canPlayerBreakBlockWhileHolding, getAttributeModifiers, getContainerItem, getDefaultInstance, getDefaultTranslationKey, getDestroySpeed, getDisplayName, getDrinkSound, getEatSound, getFood, getGroup, getHarvestLevel, getIdFromItem, getIsRepairable, getItemById, getItemEnchantability, getItemFromBlock, getItemStackTileEntityRenderer, getMaxDamage, getMaxStackSize, getName, getRarity, getTags, getToolTypes, getTranslationKey, getTranslationKey, getUseAction, getUseDuration, hasContainerItem, hasEffect, hitEntity, inventoryTick, isComplex, isCrossbow, isDamageable, isDamageable, isEnchantable, isFood, isImmuneToFire, isIn, isInGroup, isRepairable, itemInteractionForEntity, onBlockDestroyed, onCreated, onItemUse, onItemUseFinish, onPlayerStoppedUsing, onUse, rayTrace, shouldSyncTag, toString, updateItemStackNBTgetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddColoredItem, colorStack, colorStackDyeItem, getColor, hasColor, removeColor, setColorcanApplyAtEnchantingTable, canContinueUsing, canDisableShield, canElytraFly, canEquip, canHarvestBlock, createEntity, damageItem, doesSneakBypassUse, elytraFlightTick, getArmorModel, getArmorTexture, getAttributeModifiers, getBurnTime, getContainerItem, getCreativeTabs, getCreatorModId, getDamage, getDurabilityForDisplay, getEntityLifespan, getEquipmentSlot, getFontRenderer, getHighlightTip, getItem, getItemEnchantability, getItemStackLimit, getMaxDamage, getRGBDurabilityForDisplay, getSmeltingExperience, getXpRepairRatio, hasContainerItem, hasCustomEntity, initCapabilities, isBookEnchantable, isDamageable, isDamaged, isEnderMask, isPiglinCurrency, isShield, makesPiglinsNeutral, onArmorTick, onBlockStartBreak, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onItemUseFirst, onLeftClickEntity, onUsingTick, readShareTag, renderHelmetOverlay, setDamage, shouldCauseBlockBreakReset, showDurabilityBarpublic BackpackItem(Backpack backpack)
public net.minecraft.util.ActionResult<net.minecraft.item.ItemStack> onItemRightClick(net.minecraft.world.World world,
net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.Hand hand)
onItemRightClick in class net.minecraft.item.Itempublic void open(net.minecraft.entity.player.ServerPlayerEntity player,
net.minecraft.item.ItemStack stack,
int selectedSlot)
public boolean shouldCauseReequipAnimation(net.minecraft.item.ItemStack oldStack,
net.minecraft.item.ItemStack newStack,
boolean slotChanged)
shouldCauseReequipAnimation in interface net.minecraftforge.common.extensions.IForgeItempublic Backpack getBackpack()
public void fillItemGroup(net.minecraft.item.ItemGroup group,
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> items)
fillItemGroup in class net.minecraft.item.Itempublic int getDefaultColor()
getDefaultColor in interface info.u_team.u_team_core.api.dye.IDyeableItempublic net.minecraft.nbt.CompoundNBT getShareTag(net.minecraft.item.ItemStack stack)
getShareTag in interface net.minecraftforge.common.extensions.IForgeItempublic boolean onDroppedByPlayer(net.minecraft.item.ItemStack item,
net.minecraft.entity.player.PlayerEntity player)
onDroppedByPlayer in interface net.minecraftforge.common.extensions.IForgeItem