Package dev.dhyces.compostbag.item
Class CompostBagItem
java.lang.Object
net.minecraft.world.item.Item
dev.dhyces.compostbag.item.CompostBagItem
- All Implemented Interfaces:
net.minecraft.world.flag.FeatureElement,net.minecraft.world.level.ItemLike,net.neoforged.neoforge.common.extensions.IItemExtension
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
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.core.dispenser.DispenseItemBehaviorstatic final intstatic final Stringstatic final StringFields inherited from class net.minecraft.world.item.Item
BASE_ATTACK_DAMAGE_UUID, BASE_ATTACK_SPEED_UUID, BY_BLOCK, canRepair, EAT_DURATION, MAX_BAR_WIDTH, MAX_STACK_SIZEFields inherited from interface net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetBarColor(net.minecraft.world.item.ItemStack bag) intgetBarWidth(net.minecraft.world.item.ItemStack bag) static floatgetFullnessDisplay(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) booleanisBarVisible(net.minecraft.world.item.ItemStack bag) booleanoverrideOtherStackedOnMe(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) booleanoverrideStackedOnOther(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.InteractionResultuseOn(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, getRenderPropertiesInternal, getUseAnimation, getUseDuration, hasCraftingRemainingItem, hurtEnemy, initializeClient, interactLivingEntity, inventoryTick, isComplex, isCorrectToolForDrops, isEdible, isEnchantable, isFireResistant, isFoil, isRepairable, isValidRepairItem, mineBlock, onCraftedBy, onCraftedPostProcess, onDestroyed, onUseTick, releaseUsing, requiredFeatures, shouldOverrideMultiplayerNbt, toString, use, useOnRelease, verifyTagAfterLoadMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.flag.FeatureElement
isEnabledMethods inherited from interface net.neoforged.neoforge.common.extensions.IItemExtension
canApplyAtEnchantingTable, canContinueUsing, canDisableShield, canElytraFly, canEquip, canGrindstoneRepair, canPerformAction, canWalkOnPowderedSnow, createEntity, damageItem, doesSneakBypassUse, elytraFlightTick, getAllEnchantments, getArmorTexture, getAttributeModifiers, getBurnTime, getCraftingRemainingItem, getCreatorModId, getDamage, getDefaultTooltipHideFlags, getEnchantmentLevel, getEnchantmentValue, getEntityLifespan, getEquipmentSlot, getFoodProperties, getHighlightTip, getMaxDamage, getMaxStackSize, getShareTag, getSweepHitBox, getXpRepairRatio, hasCraftingRemainingItem, hasCustomEntity, isBookEnchantable, isCorrectToolForDrops, isDamageable, isDamaged, isEnderMask, isNotReplaceableByPickAction, isPiglinCurrency, makesPiglinsNeutral, onArmorTick, onBlockStartBreak, onDestroyed, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onItemUseFirst, onLeftClickEntity, onStopUsing, readShareTag, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation
-
Field Details
-
TAG_LEVEL
- See Also:
-
TAG_COUNT
- See Also:
-
MAX_BONEMEAL_COUNT
-
MAX_LEVEL
public static final int MAX_LEVEL- See Also:
-
DISPENSE_BEHAVIOR
public static final net.minecraft.core.dispenser.DispenseItemBehavior DISPENSE_BEHAVIOR
-
-
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:
useOnin classnet.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:
isBarVisiblein classnet.minecraft.world.item.Item
-
getBarWidth
public int getBarWidth(net.minecraft.world.item.ItemStack bag) - Overrides:
getBarWidthin classnet.minecraft.world.item.Item
-
getBarColor
public int getBarColor(net.minecraft.world.item.ItemStack bag) - Overrides:
getBarColorin classnet.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:
overrideStackedOnOtherin classnet.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:
overrideOtherStackedOnMein classnet.minecraft.world.item.Item
-
getTooltipImage
public Optional<net.minecraft.world.inventory.tooltip.TooltipComponent> getTooltipImage(net.minecraft.world.item.ItemStack item) - Overrides:
getTooltipImagein classnet.minecraft.world.item.Item
-