BucketPickup .java

net.minecraft.world.level.block.BucketPickup (interface, 17 lines): members: pickupBlock, getPickupSound. imports: LevelAccessor.

net.minecraft.world.level.blockinterface17 linescommon565 B

API Surface (0)

No public/protected methods detected (fields or constants only).

Code Graph: Dependencies (6)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

BucketPickup.java17 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.world.level.block;
2
3
import java.util.Optional;
4
import net.minecraft.core.BlockPos;
5
import net.minecraft.sounds.SoundEvent;
6
import net.minecraft.world.entity.LivingEntity;
7
import net.minecraft.world.item.ItemStack;
8
import net.minecraft.world.level.LevelAccessor;
9
import net.minecraft.world.level.block.state.BlockState;
10
import org.jspecify.annotations.Nullable;
11
12
public interface BucketPickup {
13
	ItemStack pickupBlock(@Nullable LivingEntity user, LevelAccessor level, BlockPos pos, BlockState state);
14
15
	Optional<SoundEvent> getPickupSound();
16
}
17

Decompiled Minecraft 26.3 source of BucketPickup (net/minecraft/world/level/block/BucketPickup.java) with Mojang official mappings, stored verbatim on the site.