Package net.minecraft.item
Class FishBucketItem
java.lang.Object
net.minecraft.item.Item
net.minecraft.item.BucketItem
net.minecraft.item.FishBucketItem
- All Implemented Interfaces:
FluidModificationItem,ItemConvertible
public class FishBucketItem extends BucketItem
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.item.Item
Item.Settings -
Field Summary
Fields Modifier and Type Field Description private SoundEventfield_28356private EntityType<?>fishTypeFields inherited from class net.minecraft.item.Item
ATTACK_DAMAGE_MODIFIER_ID, ATTACK_SPEED_MODIFIER_ID, BLOCK_ITEMS, group -
Constructor Summary
Constructors Constructor Description FishBucketItem(EntityType<?> type, Fluid fluid, SoundEvent soundEvent, Item.Settings settings) -
Method Summary
Modifier and Type Method Description voidappendTooltip(ItemStack stack, World world, List<Text> tooltip, TooltipContext context)voidonEmptied(World world, ItemStack stack, BlockPos pos)protected voidplayEmptyingSound(PlayerEntity player, WorldAccess world, BlockPos pos)private voidspawnFish(ServerWorld world, ItemStack stack, BlockPos pos)Methods inherited from class net.minecraft.item.BucketItem
getEmptiedStack, placeFluid, useMethods inherited from class net.minecraft.item.Item
appendStacks, asItem, byRawId, canMine, canRepair, damage, finishUsing, fromBlock, getAttributeModifiers, getDefaultStack, getDrinkSound, getEatSound, getEnchantability, getEquipSound, getFoodComponent, getGroup, getItemBarColor, getItemBarStep, getMaxCount, getMaxDamage, getMaxUseTime, getMiningSpeedMultiplier, getName, getName, getOrCreateTranslationKey, getRarity, getRawId, getRecipeRemainder, getTooltipData, getTranslationKey, getTranslationKey, getUseAction, hasGlint, hasRecipeRemainder, hasStoredInventory, inventoryTick, isDamageable, isEnchantable, isFireproof, isFood, isIn, isItemBarVisible, isNetworkSynced, isSuitableFor, isUsedOnRelease, method_33261, onClicked, onCraft, onStackClicked, onStoppedUsing, postHit, postMine, postProcessTag, raycast, shouldSyncTagToClient, toString, usageTick, useOnBlock, useOnEntity
-
Field Details
-
fishType
-
field_28356
-
-
Constructor Details
-
FishBucketItem
public FishBucketItem(EntityType<?> type, Fluid fluid, SoundEvent soundEvent, Item.Settings settings)
-
-
Method Details
-
onEmptied
- Specified by:
onEmptiedin interfaceFluidModificationItem- Overrides:
onEmptiedin classBucketItem
-
playEmptyingSound
- Overrides:
playEmptyingSoundin classBucketItem
-
spawnFish
-
appendTooltip
@Environment(CLIENT) public void appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context)- Overrides:
appendTooltipin classItem
-