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 SoundEvent
field_28356
private EntityType<?>
fishType
Fields 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 void
appendTooltip(ItemStack stack, World world, List<Text> tooltip, TooltipContext context)
void
onEmptied(World world, ItemStack stack, BlockPos pos)
protected void
playEmptyingSound(PlayerEntity player, WorldAccess world, BlockPos pos)
private void
spawnFish(ServerWorld world, ItemStack stack, BlockPos pos)
Methods inherited from class net.minecraft.item.BucketItem
getEmptiedStack, placeFluid, use
Methods 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:
onEmptied
in interfaceFluidModificationItem
- Overrides:
onEmptied
in classBucketItem
-
playEmptyingSound
- Overrides:
playEmptyingSound
in classBucketItem
-
spawnFish
-
appendTooltip
@Environment(CLIENT) public void appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context)- Overrides:
appendTooltip
in classItem
-