Buckets wil make sound on TR fluid pickup. Closes #3155
This commit is contained in:
parent
e57f7a444e
commit
1c92b3f382
1 changed files with 7 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue