Package net.frozenblock.lib.sound.api
Class MovingLoopingSoundEntityManager
java.lang.Object
net.frozenblock.lib.sound.api.MovingLoopingSoundEntityManager
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSound(net.minecraft.resources.ResourceLocation soundID, net.minecraft.sounds.SoundSource category, float volume, float pitch, net.minecraft.resources.ResourceLocation restrictionId, boolean stopOnDeath) voidload(net.minecraft.nbt.CompoundTag nbt) voidsave(net.minecraft.nbt.CompoundTag nbt) voidsyncWithPlayer(net.minecraft.server.level.ServerPlayer serverPlayer) voidtick()
-
Field Details
-
entity
public net.minecraft.world.entity.Entity entity
-
-
Constructor Details
-
MovingLoopingSoundEntityManager
public MovingLoopingSoundEntityManager(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.sounds.SoundSource category, float volume, float pitch, net.minecraft.resources.ResourceLocation restrictionId, boolean stopOnDeath) -
getSounds
-
tick
public void tick() -
syncWithPlayer
public void syncWithPlayer(net.minecraft.server.level.ServerPlayer serverPlayer)
-