Package ml.pluto7073.pdapi.item
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
-
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_KEYFields 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_SIZEFields inherited from interface net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractMugDrinkItem(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 TypeMethodDescriptionvoidappendHoverText(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 booleancanPlace(net.minecraft.world.item.context.BlockPlaceContext context, net.minecraft.world.level.block.state.BlockState state) net.minecraft.world.level.block.BlockgetBlock()static @Nullable net.minecraft.nbt.CompoundTaggetBlockEntityData(net.minecraft.world.item.ItemStack stack) protected @Nullable net.minecraft.world.level.block.state.BlockStategetPlacementState(net.minecraft.world.item.context.BlockPlaceContext context) protected net.minecraft.sounds.SoundEventgetPlaceSound(net.minecraft.world.level.block.state.BlockState state) protected booleannet.minecraft.world.InteractionResultplace(net.minecraft.world.item.context.BlockPlaceContext context) protected booleanplaceBlock(net.minecraft.world.item.context.BlockPlaceContext context, net.minecraft.world.level.block.state.BlockState state) voidregisterBlocks(Map<net.minecraft.world.level.block.Block, net.minecraft.world.item.Item> blockToItemMap, net.minecraft.world.item.Item item) net.minecraft.world.flag.FeatureFlagSetstatic voidsetBlockEntityData(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.block.entity.BlockEntityType<?> blockEntityType, net.minecraft.nbt.CompoundTag blockEntityData) protected booleanupdateCustomBlockEntityTag(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 booleanupdateCustomBlockEntityTag(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.BlockPlaceContextupdatePlacementContext(net.minecraft.world.item.context.BlockPlaceContext context) net.minecraft.world.InteractionResultuseOn(net.minecraft.world.item.context.UseOnContext context) Methods inherited from class ml.pluto7073.pdapi.item.AbstractCustomizableDrinkItem
baseItem, finishUsingItem, getBarColor, getBarWidth, getChemicalContent, getConsumedChemicalContent, getSipAmount, getTotalVolume, getUseAnimation, getUseDuration, isBarVisible, useMethods 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, verifyTagAfterLoadMethods 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
allowContinuingBlockBreaking, allowNbtUpdateAnimation, getAttributeModifiers, getRecipeRemainder, isSuitableForMethods 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:
useOnin classnet.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
- Overrides:
getDescriptionIdin classnet.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:
appendHoverTextin classAbstractCustomizableDrinkItem
-
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:
requiredFeaturesin interfacenet.minecraft.world.flag.FeatureElement- Overrides:
requiredFeaturesin classnet.minecraft.world.item.Item
-