Package net.minecraft.item
Class FishBucketItem
java.lang.Object
net.minecraft.item.Item
net.minecraft.item.BucketItem
net.minecraft.item.FishBucketItem
- All Implemented Interfaces:
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 EntityType<?>
fishType
Fields inherited from class net.minecraft.item.Item
ATTACK_DAMAGE_MODIFIER_ID, ATTACK_SPEED_MODIFIER_ID, BLOCK_ITEMS, group, RANDOM
-
Constructor Summary
Constructors Constructor Description FishBucketItem(EntityType<?> type, Fluid fluid, 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 serverWorld, 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, getFoodComponent, getGroup, getMaxCount, getMaxDamage, getMaxUseTime, getMiningSpeedMultiplier, getName, getName, getOrCreateTranslationKey, getRarity, getRawId, getRecipeRemainder, getTranslationKey, getTranslationKey, getUseAction, hasGlint, hasRecipeRemainder, inventoryTick, isDamageable, isEffectiveOn, isEnchantable, isFireproof, isFood, isIn, isIn, isNetworkSynced, isUsedOnRelease, onCraft, onStoppedUsing, postHit, postMine, postProcessTag, raycast, shouldSyncTagToClient, toString, usageTick, useOnBlock, useOnEntity
-
Field Details
-
fishType
-
-
Constructor Details
-
FishBucketItem
-
-
Method Details
-
onEmptied
- 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
-