Class CompostBagItem

java.lang.Object
net.minecraft.world.item.Item
dev.dhyces.compostbag.item.CompostBagItem
All Implemented Interfaces:
net.fabricmc.fabric.api.item.v1.FabricItem, net.minecraft.world.flag.FeatureElement, net.minecraft.world.level.ItemLike

public class CompostBagItem extends net.minecraft.world.item.Item
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.world.item.Item

    net.minecraft.world.item.Item.Properties
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.core.dispenser.DispenseItemBehavior
     
    static final Supplier<Integer>
     
    static final int
     
    static final String
     
    static final String
     

    Fields inherited from class net.minecraft.world.item.Item

    BASE_ATTACK_DAMAGE_UUID, BASE_ATTACK_SPEED_UUID, BY_BLOCK, EAT_DURATION, MAX_BAR_WIDTH, MAX_STACK_SIZE

    Fields inherited from interface net.minecraft.world.flag.FeatureElement

    FILTERED_REGISTRIES
  • Constructor Summary

    Constructors
    Constructor
    Description
    CompostBagItem(net.minecraft.world.item.Item.Properties properties)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    getBarColor(net.minecraft.world.item.ItemStack bag)
     
    int
    getBarWidth(net.minecraft.world.item.ItemStack bag)
     
    static float
    getFullnessDisplay(net.minecraft.world.item.ItemStack bag, net.minecraft.client.multiplayer.ClientLevel level, net.minecraft.world.entity.LivingEntity livingEntity, int seed)
     
    Optional<net.minecraft.world.inventory.tooltip.TooltipComponent>
    getTooltipImage(net.minecraft.world.item.ItemStack item)
     
    boolean
    isBarVisible(net.minecraft.world.item.ItemStack bag)
     
    boolean
    overrideOtherStackedOnMe(net.minecraft.world.item.ItemStack bag, net.minecraft.world.item.ItemStack otherItem, net.minecraft.world.inventory.Slot slot, net.minecraft.world.inventory.ClickAction clickAction, net.minecraft.world.entity.player.Player player, net.minecraft.world.entity.SlotAccess slotAccess)
     
    boolean
    overrideStackedOnOther(net.minecraft.world.item.ItemStack bag, net.minecraft.world.inventory.Slot slot, net.minecraft.world.inventory.ClickAction clickAction, net.minecraft.world.entity.player.Player player)
     
    net.minecraft.world.InteractionResult
    useOn(net.minecraft.world.item.context.UseOnContext context)
     

    Methods inherited from class net.minecraft.world.item.Item

    appendHoverText, asItem, builtInRegistryHolder, byBlock, byId, canAttackBlock, canBeDepleted, canBeHurtBy, canFitInsideContainerItems, finishUsingItem, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getEnchantmentValue, getFoodProperties, getId, getMaxDamage, getMaxStackSize, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getRarity, getUseAnimation, getUseDuration, hasCraftingRemainingItem, hurtEnemy, interactLivingEntity, inventoryTick, isComplex, isCorrectToolForDrops, isEdible, isEnchantable, isFireResistant, isFoil, isValidRepairItem, mineBlock, onCraftedBy, onCraftedPostProcess, onDestroyed, onUseTick, releaseUsing, requiredFeatures, shouldOverrideMultiplayerNbt, toString, use, useOnRelease, verifyTagAfterLoad

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface net.fabricmc.fabric.api.item.v1.FabricItem

    allowContinuingBlockBreaking, allowNbtUpdateAnimation, getAttributeModifiers, getRecipeRemainder, isSuitableFor

    Methods inherited from interface net.minecraft.world.flag.FeatureElement

    isEnabled
  • Field Details

  • Constructor Details

    • CompostBagItem

      public CompostBagItem(net.minecraft.world.item.Item.Properties properties)
  • Method Details

    • useOn

      public net.minecraft.world.InteractionResult useOn(net.minecraft.world.item.context.UseOnContext context)
      Overrides:
      useOn in class net.minecraft.world.item.Item
    • getFullnessDisplay

      public static float getFullnessDisplay(net.minecraft.world.item.ItemStack bag, net.minecraft.client.multiplayer.ClientLevel level, net.minecraft.world.entity.LivingEntity livingEntity, int seed)
    • isBarVisible

      public boolean isBarVisible(net.minecraft.world.item.ItemStack bag)
      Overrides:
      isBarVisible in class net.minecraft.world.item.Item
    • getBarWidth

      public int getBarWidth(net.minecraft.world.item.ItemStack bag)
      Overrides:
      getBarWidth in class net.minecraft.world.item.Item
    • getBarColor

      public int getBarColor(net.minecraft.world.item.ItemStack bag)
      Overrides:
      getBarColor in class net.minecraft.world.item.Item
    • overrideStackedOnOther

      public boolean overrideStackedOnOther(net.minecraft.world.item.ItemStack bag, net.minecraft.world.inventory.Slot slot, net.minecraft.world.inventory.ClickAction clickAction, net.minecraft.world.entity.player.Player player)
      Overrides:
      overrideStackedOnOther in class net.minecraft.world.item.Item
    • overrideOtherStackedOnMe

      public boolean overrideOtherStackedOnMe(net.minecraft.world.item.ItemStack bag, net.minecraft.world.item.ItemStack otherItem, net.minecraft.world.inventory.Slot slot, net.minecraft.world.inventory.ClickAction clickAction, net.minecraft.world.entity.player.Player player, net.minecraft.world.entity.SlotAccess slotAccess)
      Overrides:
      overrideOtherStackedOnMe in class net.minecraft.world.item.Item
    • getTooltipImage

      public Optional<net.minecraft.world.inventory.tooltip.TooltipComponent> getTooltipImage(net.minecraft.world.item.ItemStack item)
      Overrides:
      getTooltipImage in class net.minecraft.world.item.Item