Buckets wil make sound on TR fluid pickup. Closes #3155

This commit is contained in:
drcrazy 2023-07-25 16:05:08 +03:00
parent e57f7a444e
commit 1c92b3f382

View file

@ -32,6 +32,8 @@ import net.minecraft.fluid.FlowableFluid;
import net.minecraft.fluid.Fluid;
import net.minecraft.fluid.FluidState;
import net.minecraft.item.Item;
import net.minecraft.sound.SoundEvent;
import net.minecraft.sound.SoundEvents;
import net.minecraft.state.StateManager;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.Direction;
@ -40,6 +42,7 @@ import net.minecraft.world.World;
import net.minecraft.world.WorldAccess;
import net.minecraft.world.WorldView;
import java.util.Optional;
import java.util.function.Supplier;
public abstract class RebornFluid extends FlowableFluid {
@ -144,5 +147,9 @@ public abstract class RebornFluid extends FlowableFluid {
stateBuilder.add(LEVEL);
}
}
@Override
public Optional<SoundEvent> getBucketFillSound() {
return Optional.of(SoundEvents.ITEM_BUCKET_FILL);
}
}