Interface IBucketPickupExtension

All Known Implementing Classes:
net.minecraft.world.level.block.BaseRailBlock, net.minecraft.world.level.block.CeilingHangingSignBlock, CustomSignsTest.CustomCeilingHangingSignBlock, CustomSignsTest.CustomStandingSignBlock, CustomSignsTest.CustomWallHangingSignBlock, CustomSignsTest.CustomWallSignBlock, HideNeighborFaceTest.GlassSlab, NewFluidTest.FluidloggableBlock, net.minecraft.world.level.block.ScaffoldingBlock, ScaffoldingTest.ScaffoldingMethodTestBlock, net.minecraft.world.level.block.SignBlock, net.minecraft.world.level.block.SlabBlock, net.minecraft.world.level.block.StandingSignBlock, ValidRailShapeTest.RailSlopeBlock, net.minecraft.world.level.block.WallHangingSignBlock, net.minecraft.world.level.block.WallSignBlock

public interface IBucketPickupExtension
  • Method Summary

    Modifier and Type
    Method
    Description
    default Optional<net.minecraft.sounds.SoundEvent>
    getPickupSound(net.minecraft.world.level.block.state.BlockState state)
    State sensitive variant of BucketPickup.getPickupSound().
    private net.minecraft.world.level.block.BucketPickup
     
  • Method Details

    • self

      private net.minecraft.world.level.block.BucketPickup self()
    • getPickupSound

      default Optional<net.minecraft.sounds.SoundEvent> getPickupSound(net.minecraft.world.level.block.state.BlockState state)
      State sensitive variant of BucketPickup.getPickupSound(). Override to change the pickup sound based on the BlockState of the object being picked up.
      Parameters:
      state - State
      Returns:
      Sound event for pickup sound or empty if there isn't a pickup sound.