Class SoundEventAdapter
java.lang.Object
net.darkhax.bookshelf.common.api.registry.adapters.GameRegistryAdapter<net.minecraft.sounds.SoundEvent>
net.darkhax.bookshelf.common.impl.registry.adapter.SoundEventAdapter
- All Implemented Interfaces:
RegistryAdapter<net.minecraft.resources.ResourceKey<net.minecraft.sounds.SoundEvent>, net.minecraft.sounds.SoundEvent>
-
Field Summary
Fields inherited from class GameRegistryAdapter
context, registryFunc, registryKey -
Constructor Summary
ConstructorsConstructorDescriptionSoundEventAdapter(RegistrationContext context, net.minecraft.resources.ResourceKey<net.minecraft.core.Registry<net.minecraft.sounds.SoundEvent>> registryKey, BiConsumer<net.minecraft.resources.ResourceKey<net.minecraft.sounds.SoundEvent>, Supplier<net.minecraft.sounds.SoundEvent>> registryFunc) -
Method Summary
Modifier and TypeMethodDescriptionvoidfixedRange(String id, float range) voidvariableRange(String id) Methods inherited from class GameRegistryAdapter
add, idMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface RegistryAdapter
add
-
Constructor Details
-
SoundEventAdapter
public SoundEventAdapter(RegistrationContext context, net.minecraft.resources.ResourceKey<net.minecraft.core.Registry<net.minecraft.sounds.SoundEvent>> registryKey, BiConsumer<net.minecraft.resources.ResourceKey<net.minecraft.sounds.SoundEvent>, Supplier<net.minecraft.sounds.SoundEvent>> registryFunc)
-
-
Method Details
-
fixedRange
-
variableRange
-