Class AbstractMugDrinkItem

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

public abstract class AbstractMugDrinkItem extends AbstractCustomizableDrinkItem
  • Nested Class Summary

    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, baseVolume, 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
    AbstractMugDrinkItem(net.minecraft.world.level.block.Block mugBlock, net.minecraft.world.item.Item baseItem, double baseVolume, net.minecraft.world.item.Item.Properties settings)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    appendHoverText(net.minecraft.world.item.ItemStack stack, @Nullable net.minecraft.world.level.Level level, List<net.minecraft.network.chat.Component> tooltipComponents, net.minecraft.world.item.TooltipFlag isAdvanced)
     
    protected boolean
    canPlace(net.minecraft.world.item.context.BlockPlaceContext context, net.minecraft.world.level.block.state.BlockState state)
     
    net.minecraft.world.level.block.Block
     
    static @Nullable net.minecraft.nbt.CompoundTag
    getBlockEntityData(net.minecraft.world.item.ItemStack stack)
     
     
    protected @Nullable net.minecraft.world.level.block.state.BlockState
    getPlacementState(net.minecraft.world.item.context.BlockPlaceContext context)
     
    protected net.minecraft.sounds.SoundEvent
    getPlaceSound(net.minecraft.world.level.block.state.BlockState state)
     
    protected boolean
     
    net.minecraft.world.InteractionResult
    place(net.minecraft.world.item.context.BlockPlaceContext context)
     
    protected boolean
    placeBlock(net.minecraft.world.item.context.BlockPlaceContext context, net.minecraft.world.level.block.state.BlockState state)
     
    void
    registerBlocks(Map<net.minecraft.world.level.block.Block,net.minecraft.world.item.Item> blockToItemMap, net.minecraft.world.item.Item item)
     
    net.minecraft.world.flag.FeatureFlagSet
     
    static void
    setBlockEntityData(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.block.entity.BlockEntityType<?> blockEntityType, net.minecraft.nbt.CompoundTag blockEntityData)
     
    protected boolean
    updateCustomBlockEntityTag(net.minecraft.core.BlockPos pos, net.minecraft.world.level.Level level, @Nullable net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.block.state.BlockState state)
     
    static boolean
    updateCustomBlockEntityTag(net.minecraft.world.level.Level level, @Nullable net.minecraft.world.entity.player.Player player, net.minecraft.core.BlockPos pos, net.minecraft.world.item.ItemStack stack)
     
    @Nullable net.minecraft.world.item.context.BlockPlaceContext
    updatePlacementContext(net.minecraft.world.item.context.BlockPlaceContext context)
     
    net.minecraft.world.InteractionResult
    useOn(net.minecraft.world.item.context.UseOnContext context)
     

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

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

    • AbstractMugDrinkItem

      protected AbstractMugDrinkItem(net.minecraft.world.level.block.Block mugBlock, net.minecraft.world.item.Item baseItem, double baseVolume, net.minecraft.world.item.Item.Properties settings)
  • 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
    • place

      public net.minecraft.world.InteractionResult place(net.minecraft.world.item.context.BlockPlaceContext context)
    • getPlaceSound

      protected net.minecraft.sounds.SoundEvent getPlaceSound(net.minecraft.world.level.block.state.BlockState state)
    • updatePlacementContext

      @Nullable public @Nullable net.minecraft.world.item.context.BlockPlaceContext updatePlacementContext(net.minecraft.world.item.context.BlockPlaceContext context)
    • updateCustomBlockEntityTag

      protected boolean updateCustomBlockEntityTag(net.minecraft.core.BlockPos pos, net.minecraft.world.level.Level level, @Nullable @Nullable net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.block.state.BlockState state)
    • getPlacementState

      @Nullable protected @Nullable net.minecraft.world.level.block.state.BlockState getPlacementState(net.minecraft.world.item.context.BlockPlaceContext context)
    • canPlace

      protected boolean canPlace(net.minecraft.world.item.context.BlockPlaceContext context, net.minecraft.world.level.block.state.BlockState state)
    • mustSurvive

      protected boolean mustSurvive()
    • placeBlock

      protected boolean placeBlock(net.minecraft.world.item.context.BlockPlaceContext context, net.minecraft.world.level.block.state.BlockState state)
    • updateCustomBlockEntityTag

      public static boolean updateCustomBlockEntityTag(net.minecraft.world.level.Level level, @Nullable @Nullable net.minecraft.world.entity.player.Player player, net.minecraft.core.BlockPos pos, net.minecraft.world.item.ItemStack stack)
    • getDescriptionId

      public String getDescriptionId()
      Overrides:
      getDescriptionId in class net.minecraft.world.item.Item
    • appendHoverText

      public void appendHoverText(net.minecraft.world.item.ItemStack stack, @Nullable @Nullable net.minecraft.world.level.Level level, List<net.minecraft.network.chat.Component> tooltipComponents, net.minecraft.world.item.TooltipFlag isAdvanced)
      Overrides:
      appendHoverText in class AbstractCustomizableDrinkItem
    • getBlock

      public net.minecraft.world.level.block.Block getBlock()
    • registerBlocks

      public void registerBlocks(Map<net.minecraft.world.level.block.Block,net.minecraft.world.item.Item> blockToItemMap, net.minecraft.world.item.Item item)
    • getBlockEntityData

      @Nullable public static @Nullable net.minecraft.nbt.CompoundTag getBlockEntityData(net.minecraft.world.item.ItemStack stack)
    • setBlockEntityData

      public static void setBlockEntityData(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.block.entity.BlockEntityType<?> blockEntityType, net.minecraft.nbt.CompoundTag blockEntityData)
    • requiredFeatures

      public net.minecraft.world.flag.FeatureFlagSet requiredFeatures()
      Specified by:
      requiredFeatures in interface net.minecraft.world.flag.FeatureElement
      Overrides:
      requiredFeatures in class net.minecraft.world.item.Item