Class SpecialtyDrinkItem

java.lang.Object
net.minecraft.world.item.Item
ml.pluto7073.pdapi.item.AbstractCustomizableDrinkItem
ml.pluto7073.pdapi.item.SpecialtyDrinkItem
All Implemented Interfaces:
net.fabricmc.fabric.api.item.v1.FabricItem, net.minecraft.world.flag.FeatureElement, net.minecraft.world.level.ItemLike

public class SpecialtyDrinkItem extends AbstractCustomizableDrinkItem
  • Nested Class Summary

    Nested classes/interfaces inherited from class ml.pluto7073.pdapi.item.AbstractCustomizableDrinkItem

    AbstractCustomizableDrinkItem.Temperature

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

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

    Fields inherited from class ml.pluto7073.pdapi.item.AbstractCustomizableDrinkItem

    baseItem, baseTemperature, DRINK_DATA_NBT_KEY

    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
    Modifier
    Constructor
    Description
    protected
    SpecialtyDrinkItem(net.minecraft.world.item.Item.Properties settings)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.item.ItemStack
    finishUsingItem(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level level, net.minecraft.world.entity.LivingEntity user)
     
    int
    getChemicalContent(String name, net.minecraft.world.item.ItemStack stack)
     
    getDescriptionId(net.minecraft.world.item.ItemStack stack)
     

    Methods inherited from class ml.pluto7073.pdapi.item.AbstractCustomizableDrinkItem

    appendHoverText, getDrinkTemperature, getUseAnimation, getUseDuration, use

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

    asItem, builtInRegistryHolder, byBlock, byId, canAttackBlock, canBeDepleted, canBeHurtBy, canFitInsideContainerItems, getBarColor, getBarWidth, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDescription, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getEnchantmentValue, getFoodProperties, getId, getMaxDamage, getMaxStackSize, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getRarity, getTooltipImage, hasCraftingRemainingItem, hurtEnemy, interactLivingEntity, inventoryTick, isBarVisible, isComplex, isCorrectToolForDrops, isEdible, isEnchantable, isFireResistant, isFoil, isValidRepairItem, mineBlock, onCraftedBy, onDestroyed, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, releaseUsing, requiredFeatures, shouldOverrideMultiplayerNbt, toString, useOn, 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
  • Constructor Details

    • SpecialtyDrinkItem

      protected SpecialtyDrinkItem(net.minecraft.world.item.Item.Properties settings)
  • Method Details

    • getChemicalContent

      public int getChemicalContent(String name, net.minecraft.world.item.ItemStack stack)
      Overrides:
      getChemicalContent in class AbstractCustomizableDrinkItem
    • finishUsingItem

      public net.minecraft.world.item.ItemStack finishUsingItem(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level level, net.minecraft.world.entity.LivingEntity user)
      Overrides:
      finishUsingItem in class AbstractCustomizableDrinkItem
    • getDescriptionId

      public String getDescriptionId(net.minecraft.world.item.ItemStack stack)
      Overrides:
      getDescriptionId in class net.minecraft.world.item.Item