Package net.frozenblock.lib.sound.api
Class MovingLoopingFadingDistanceSoundEntityManager
java.lang.Object
net.frozenblock.lib.sound.api.MovingLoopingFadingDistanceSoundEntityManager
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMovingLoopingFadingDistanceSoundEntityManager(net.minecraft.world.entity.Entity entity) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSound(net.minecraft.resources.ResourceLocation soundID, net.minecraft.resources.ResourceLocation soundID2, net.minecraft.sounds.SoundSource category, float volume, float pitch, net.minecraft.resources.ResourceLocation restrictionId, boolean stopOnDeath, float fadeDist, float maxDist) voidload(net.minecraft.nbt.CompoundTag nbt) voidsave(net.minecraft.nbt.CompoundTag nbt) voidsyncWithPlayer(net.minecraft.server.level.ServerPlayer serverPlayer) voidtick()
-
Field Details
-
entity
public final net.minecraft.world.entity.Entity entity
-
-
Constructor Details
-
MovingLoopingFadingDistanceSoundEntityManager
public MovingLoopingFadingDistanceSoundEntityManager(net.minecraft.world.entity.Entity entity)
-
-
Method Details
-
load
public void load(net.minecraft.nbt.CompoundTag nbt) -
save
public void save(net.minecraft.nbt.CompoundTag nbt) -
addSound
public void addSound(net.minecraft.resources.ResourceLocation soundID, net.minecraft.resources.ResourceLocation soundID2, net.minecraft.sounds.SoundSource category, float volume, float pitch, net.minecraft.resources.ResourceLocation restrictionId, boolean stopOnDeath, float fadeDist, float maxDist) -
getSounds
public ArrayList<MovingLoopingFadingDistanceSoundEntityManager.FadingDistanceSoundLoopNBT> getSounds() -
tick
public void tick() -
syncWithPlayer
public void syncWithPlayer(net.minecraft.server.level.ServerPlayer serverPlayer)
-