public class BundleItem extends Item
Item.Settings| Modifier and Type | Field and Description |
|---|---|
private static int |
field_27016 |
ATTACK_DAMAGE_MODIFIER_ID, ATTACK_SPEED_MODIFIER_ID, BLOCK_ITEMS, group| Constructor and Description |
|---|
BundleItem(Item.Settings settings) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendTooltip(ItemStack stack,
World world,
List<Text> tooltip,
TooltipContext context) |
private static void |
method_31557(ItemStack itemStack,
PlayerInventory playerInventory) |
private static void |
method_31560(ItemStack itemStack,
ItemStack itemStack2) |
static float |
method_31561(ItemStack itemStack) |
private static int |
method_31562(ItemStack itemStack) |
private static int |
method_31563(ItemStack itemStack) |
boolean |
method_31565(ItemStack itemStack,
ItemStack itemStack2,
class_5536 class_5536,
PlayerInventory playerInventory) |
boolean |
method_31566(ItemStack itemStack,
ItemStack itemStack2,
class_5536 class_5536,
PlayerInventory playerInventory) |
boolean |
method_31567(ItemStack itemStack) |
int |
method_31569(ItemStack itemStack) |
int |
method_31571(ItemStack itemStack) |
TypedActionResult<ItemStack> |
use(World world,
PlayerEntity user,
Hand hand)
Called when an item is used by a player.
|
appendStacks, asItem, byRawId, canMine, canRepair, damage, finishUsing, fromBlock, getAttributeModifiers, getDefaultStack, getDrinkSound, getEatSound, getEnchantability, getFoodComponent, getGroup, getMaxCount, getMaxDamage, getMaxUseTime, getMiningSpeedMultiplier, getName, getName, getOrCreateTranslationKey, getRarity, getRawId, getRecipeRemainder, getTranslationKey, getTranslationKey, getUseAction, hasGlint, hasRecipeRemainder, inventoryTick, isDamageable, isEffectiveOn, isEnchantable, isFireproof, isFood, isIn, isNetworkSynced, isUsedOnRelease, method_31568, method_31570, onCraft, onStoppedUsing, postHit, postMine, postProcessTag, raycast, shouldSyncTagToClient, toString, usageTick, useOnBlock, useOnEntitypublic BundleItem(Item.Settings settings)
@Environment(value=CLIENT) public static float method_31561(ItemStack itemStack)
public boolean method_31565(ItemStack itemStack, ItemStack itemStack2, class_5536 class_5536, PlayerInventory playerInventory)
method_31565 in class Itempublic boolean method_31566(ItemStack itemStack, ItemStack itemStack2, class_5536 class_5536, PlayerInventory playerInventory)
method_31566 in class Itempublic TypedActionResult<ItemStack> use(World world, PlayerEntity user, Hand hand)
This method is called on both the logical client and logical server, so take caution when overriding this method.
The logical side can be checked using world.isClient().
use in class Itemworld - the world the item was used inuser - the player who used the itemhand - the hand used@Environment(value=CLIENT) public boolean method_31567(ItemStack itemStack)
method_31567 in class Item@Environment(value=CLIENT) public int method_31569(ItemStack itemStack)
method_31569 in class Item@Environment(value=CLIENT) public int method_31571(ItemStack itemStack)
method_31571 in class Itemprivate static int method_31562(ItemStack itemStack)
private static int method_31563(ItemStack itemStack)
private static void method_31557(ItemStack itemStack, PlayerInventory playerInventory)
@Environment(value=CLIENT) public void appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context)
appendTooltip in class Item