mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00:00
Implement getPickupSound on ForgeFlowingFluid (#8374)
This commit is contained in:
1 parent
e10f5c637e
commit
f19f7e4670
1 file changed
+10
@@ -19,6 +19,9 @@
|
||||
|
||||
package net.minecraftforge.fluids;
|
||||
|
||||
import java.util.Optional;
|
||||
import javax.annotation.Nonnull;
|
||||
import net.minecraft.sounds.SoundEvent;
|
||||
import net.minecraft.world.level.block.Block;
|
||||
import net.minecraft.world.level.block.state.BlockState;
|
||||
import net.minecraft.world.level.block.Blocks;
|
||||
@@ -143,6 +146,13 @@ public abstract class ForgeFlowingFluid extends FlowingFluid
|
||||
return fluidIn == still.get() || fluidIn == flowing.get();
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
public Optional<SoundEvent> getPickupSound()
|
||||
{
|
||||
return Optional.ofNullable(getAttributes().getFillSound());
|
||||
}
|
||||
|
||||
@Override
|
||||
protected FluidAttributes createAttributes()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user