Package dev.dhyces.compostbag.item
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, net.minecraft.world.item.Item.TooltipContextNested classes/interfaces inherited from interface net.fabricmc.fabric.api.item.v1.FabricItem
net.fabricmc.fabric.api.item.v1.FabricItem.Settings -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.core.dispenser.DispenseItemBehaviorFields inherited from class net.minecraft.world.item.Item
ABSOLUTE_MAX_STACK_SIZE, BASE_ATTACK_DAMAGE_UUID, BASE_ATTACK_SPEED_UUID, BY_BLOCK, DEFAULT_MAX_STACK_SIZE, MAX_BAR_WIDTHFields inherited from interface net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetBarColor(net.minecraft.world.item.ItemStack stack) intgetBarWidth(net.minecraft.world.item.ItemStack stack) static intgetBonemeal(net.minecraft.world.item.ItemStack stack) static intgetLevel(net.minecraft.world.item.ItemStack stack) static intgetMaxBonemeal(net.minecraft.world.item.ItemStack stack) static intgetMaxLevel(net.minecraft.world.item.ItemStack stack) Optional<net.minecraft.world.inventory.tooltip.TooltipComponent> getTooltipImage(net.minecraft.world.item.ItemStack stack) static voidgrowBonemealCount(net.minecraft.world.item.ItemStack bag, int amount) static voidgrowLevel(net.minecraft.world.item.ItemStack stack, int amount) booleanisBarVisible(net.minecraft.world.item.ItemStack stack) booleanoverrideOtherStackedOnMe(net.minecraft.world.item.ItemStack stack, 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 stack, net.minecraft.world.inventory.Slot slot, net.minecraft.world.inventory.ClickAction clickAction, net.minecraft.world.entity.player.Player player) static voidsetLevel(net.minecraft.world.item.ItemStack stack, int lvl) net.minecraft.world.InteractionResultuseOn(net.minecraft.world.item.context.UseOnContext context) voidverifyComponentsAfterLoad(net.minecraft.world.item.ItemStack stack) Methods inherited from class net.minecraft.world.item.Item
appendHoverText, asItem, builtInRegistryHolder, byBlock, byId, canAttackBlock, canFitInsideContainerItems, components, finishUsingItem, getAttackDamageBonus, getBreakingSound, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDefaultMaxStackSize, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getEnchantmentValue, getId, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getUseAnimation, getUseDuration, hasCraftingRemainingItem, hurtEnemy, interactLivingEntity, inventoryTick, isComplex, isCorrectToolForDrops, isEnchantable, isFoil, isValidRepairItem, mineBlock, onCraftedBy, onCraftedPostProcess, onDestroyed, onUseTick, releaseUsing, requiredFeatures, toString, use, useOnReleaseMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.fabricmc.fabric.api.item.v1.FabricItem
allowComponentsUpdateAnimation, allowContinuingBlockBreaking, canBeEnchantedWith, getAttributeModifiers, getRecipeRemainderMethods inherited from interface net.minecraft.world.flag.FeatureElement
isEnabled
-
Field Details
-
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
-
isBarVisible
public boolean isBarVisible(net.minecraft.world.item.ItemStack stack) - Overrides:
isBarVisiblein classnet.minecraft.world.item.Item
-
getBarWidth
public int getBarWidth(net.minecraft.world.item.ItemStack stack) - Overrides:
getBarWidthin classnet.minecraft.world.item.Item
-
getBarColor
public int getBarColor(net.minecraft.world.item.ItemStack stack) - Overrides:
getBarColorin classnet.minecraft.world.item.Item
-
overrideStackedOnOther
public boolean overrideStackedOnOther(net.minecraft.world.item.ItemStack stack, 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 stack, 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 stack) - Overrides:
getTooltipImagein classnet.minecraft.world.item.Item
-
verifyComponentsAfterLoad
public void verifyComponentsAfterLoad(net.minecraft.world.item.ItemStack stack) - Overrides:
verifyComponentsAfterLoadin classnet.minecraft.world.item.Item
-
getMaxBonemeal
public static int getMaxBonemeal(net.minecraft.world.item.ItemStack stack) -
growBonemealCount
public static void growBonemealCount(net.minecraft.world.item.ItemStack bag, int amount) -
getBonemeal
public static int getBonemeal(net.minecraft.world.item.ItemStack stack) -
getMaxLevel
public static int getMaxLevel(net.minecraft.world.item.ItemStack stack) -
growLevel
public static void growLevel(net.minecraft.world.item.ItemStack stack, int amount) -
setLevel
public static void setLevel(net.minecraft.world.item.ItemStack stack, int lvl) -
getLevel
public static int getLevel(net.minecraft.world.item.ItemStack stack)
-