Class RegistryReadyBlockSoundType

java.lang.Object
net.minecraft.world.level.block.SoundType
com.mosaicmodding.tessera.sound.TesseraSoundType
com.mosaicmodding.tessera.sound.RegistryReadyBlockSoundType

public abstract class RegistryReadyBlockSoundType extends TesseraSoundType
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.mosaicmodding.tessera.sound.TesseraSoundType

    TesseraSoundType.EquivalentEffectSoundAcceptor
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final Supplier<net.minecraft.sounds.SoundEvent>
     
    protected final Supplier<net.minecraft.sounds.SoundEvent>
     
    protected final Supplier<net.minecraft.sounds.SoundEvent>
     
    protected final Supplier<net.minecraft.sounds.SoundEvent>
     
    protected final Supplier<net.minecraft.sounds.SoundEvent>
     

    Fields inherited from class net.minecraft.world.level.block.SoundType

    AMETHYST, AMETHYST_CLUSTER, ANCIENT_DEBRIS, ANVIL, AZALEA, AZALEA_LEAVES, BAMBOO, BAMBOO_SAPLING, BAMBOO_WOOD, BAMBOO_WOOD_HANGING_SIGN, BASALT, BIG_DRIPLEAF, BONE_BLOCK, CALCITE, CANDLE, CAVE_VINES, CHAIN, CHERRY_LEAVES, CHERRY_SAPLING, CHERRY_WOOD, CHERRY_WOOD_HANGING_SIGN, CHISELED_BOOKSHELF, COBWEB, COPPER, COPPER_BULB, COPPER_GRATE, CORAL_BLOCK, CROP, DECORATED_POT, DECORATED_POT_CRACKED, DEEPSLATE, DEEPSLATE_BRICKS, DEEPSLATE_TILES, DRIPSTONE_BLOCK, EMPTY, FLOWERING_AZALEA, FROGLIGHT, FROGSPAWN, FUNGUS, GILDED_BLACKSTONE, GLASS, GLOW_LICHEN, GRASS, GRAVEL, HANGING_ROOTS, HANGING_SIGN, HARD_CROP, HEAVY_CORE, HONEY_BLOCK, LADDER, LANTERN, LARGE_AMETHYST_BUD, LILY_PAD, LODESTONE, MANGROVE_ROOTS, MEDIUM_AMETHYST_BUD, METAL, MOSS, MOSS_CARPET, MUD, MUD_BRICKS, MUDDY_MANGROVE_ROOTS, NETHER_BRICKS, NETHER_GOLD_ORE, NETHER_ORE, NETHER_SPROUTS, NETHER_WART, NETHER_WOOD, NETHER_WOOD_HANGING_SIGN, NETHERITE_BLOCK, NETHERRACK, NYLIUM, PACKED_MUD, PINK_PETALS, pitch, POINTED_DRIPSTONE, POLISHED_DEEPSLATE, POLISHED_TUFF, POWDER_SNOW, ROOTED_DIRT, ROOTS, SAND, SCAFFOLDING, SCULK, SCULK_CATALYST, SCULK_SENSOR, SCULK_SHRIEKER, SCULK_VEIN, SHROOMLIGHT, SLIME_BLOCK, SMALL_AMETHYST_BUD, SMALL_DRIPLEAF, SNOW, SOUL_SAND, SOUL_SOIL, SPONGE, SPORE_BLOSSOM, STEM, STONE, SUSPICIOUS_GRAVEL, SUSPICIOUS_SAND, SWEET_BERRY_BUSH, TRIAL_SPAWNER, TUFF, TUFF_BRICKS, TWISTING_VINES, VAULT, VINE, volume, WART_BLOCK, WEEPING_VINES, WET_GRASS, WET_SPONGE, WOOD, WOOL
  • Constructor Summary

    Constructors
    Constructor
    Description
    RegistryReadyBlockSoundType(Function<net.minecraft.sounds.SoundEvent,Supplier<net.minecraft.sounds.SoundEvent>> registry, Function<String,net.minecraft.resources.ResourceLocation> path, String name)
     
    RegistryReadyBlockSoundType(Function<net.minecraft.sounds.SoundEvent,Supplier<net.minecraft.sounds.SoundEvent>> registry, Function<String,net.minecraft.resources.ResourceLocation> path, String name, float volume, float pitch)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull net.minecraft.sounds.SoundEvent
     
    Supplier<net.minecraft.sounds.SoundEvent>
     
    @NotNull net.minecraft.sounds.SoundEvent
     
    Supplier<net.minecraft.sounds.SoundEvent>
     
    @NotNull net.minecraft.sounds.SoundEvent
     
    Supplier<net.minecraft.sounds.SoundEvent>
     
    @NotNull net.minecraft.sounds.SoundEvent
     
    Supplier<net.minecraft.sounds.SoundEvent>
     
    @NotNull net.minecraft.sounds.SoundEvent
     
    Supplier<net.minecraft.sounds.SoundEvent>
     

    Methods inherited from class com.mosaicmodding.tessera.sound.TesseraSoundType

    onPlayBreakSound, onPlayFallSound, onPlayHitSound, onPlayPlaceSound, onPlayStepSound

    Methods inherited from class net.minecraft.world.level.block.SoundType

    getPitch, getVolume

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • breakSound

      protected final Supplier<net.minecraft.sounds.SoundEvent> breakSound
    • stepSound

      protected final Supplier<net.minecraft.sounds.SoundEvent> stepSound
    • placeSound

      protected final Supplier<net.minecraft.sounds.SoundEvent> placeSound
    • hitSound

      protected final Supplier<net.minecraft.sounds.SoundEvent> hitSound
    • fallSound

      protected final Supplier<net.minecraft.sounds.SoundEvent> fallSound
  • Constructor Details

    • RegistryReadyBlockSoundType

      public RegistryReadyBlockSoundType(Function<net.minecraft.sounds.SoundEvent,Supplier<net.minecraft.sounds.SoundEvent>> registry, Function<String,net.minecraft.resources.ResourceLocation> path, String name)
    • RegistryReadyBlockSoundType

      public RegistryReadyBlockSoundType(Function<net.minecraft.sounds.SoundEvent,Supplier<net.minecraft.sounds.SoundEvent>> registry, Function<String,net.minecraft.resources.ResourceLocation> path, String name, float volume, float pitch)
  • Method Details

    • getBreakSound

      @NotNull public @NotNull net.minecraft.sounds.SoundEvent getBreakSound()
      Overrides:
      getBreakSound in class TesseraSoundType
    • getStepSound

      @NotNull public @NotNull net.minecraft.sounds.SoundEvent getStepSound()
      Overrides:
      getStepSound in class TesseraSoundType
    • getPlaceSound

      @NotNull public @NotNull net.minecraft.sounds.SoundEvent getPlaceSound()
      Overrides:
      getPlaceSound in class TesseraSoundType
    • getHitSound

      @NotNull public @NotNull net.minecraft.sounds.SoundEvent getHitSound()
      Overrides:
      getHitSound in class TesseraSoundType
    • getFallSound

      @NotNull public @NotNull net.minecraft.sounds.SoundEvent getFallSound()
      Overrides:
      getFallSound in class TesseraSoundType
    • getBreakSoundHolder

      public Supplier<net.minecraft.sounds.SoundEvent> getBreakSoundHolder()
    • getStepSoundHolder

      public Supplier<net.minecraft.sounds.SoundEvent> getStepSoundHolder()
    • getPlaceSoundHolder

      public Supplier<net.minecraft.sounds.SoundEvent> getPlaceSoundHolder()
    • getHitSoundHolder

      public Supplier<net.minecraft.sounds.SoundEvent> getHitSoundHolder()
    • getFallSoundHolder

      public Supplier<net.minecraft.sounds.SoundEvent> getFallSoundHolder()