package com.cursedcauldron.wildbackport.client.sound; import net.minecraft.sounds.SoundEvent; import net.minecraft.world.level.block.SoundType; import java.util.function.Supplier; public class CoreSoundType extends SoundType { private final Supplier breakSound; private final Supplier stepSound; private final Supplier placeSound; private final Supplier hitSound; private final Supplier fallSound; @SuppressWarnings("all") public CoreSoundType(Supplier breakSound, Supplier stepSound, Supplier placeSound, Supplier hitSound, Supplier fallSound) { super(1.0F, 1.0F, null, null, null, null, null); this.breakSound = breakSound; this.stepSound = stepSound; this.placeSound = placeSound; this.hitSound = hitSound; this.fallSound = fallSound; } @Override public SoundEvent getBreakSound() { return this.breakSound.get(); } @Override public SoundEvent getStepSound() { return this.stepSound.get(); } @Override public SoundEvent getPlaceSound() { return this.placeSound.get(); } @Override public SoundEvent getHitSound() { return this.hitSound.get(); } @Override public SoundEvent getFallSound() { return this.fallSound.get(); } }