Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
ServerSoundInstance.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
10namespace ServerSoundRuntime { struct Definition; }
11// clang-format on
12
13class ServerSoundInstance {
14public:
15 // member variables
16 // NOLINTBEGIN
24 // NOLINTEND
25
26public:
27 // prevent constructor by default
28 ServerSoundInstance& operator=(ServerSoundInstance const&);
29 ServerSoundInstance(ServerSoundInstance const&);
30 ServerSoundInstance();
31
32public:
33 // member functions
34 // NOLINTBEGIN
38 ::std::string soundEventId,
39 ::std::shared_ptr<::ServerSoundRuntime::Definition const> definition,
40 int loopCount,
41 ::std::optional<::NetworkIdentifierWithSubId> recipient
42 );
43
44 MCNAPI float getPlaybackPosition(::std::chrono::steady_clock::time_point now) const;
45
46 MCNAPI ::ServerSoundInstance& operator=(::ServerSoundInstance&& other);
47
48 MCNAPI void pause();
49
50 MCNAPI void resume();
51
52 MCNAPI void seekTo(float seconds);
53
54 MCNAPI void setPitch(float pitch);
55
56 MCNAPI void setVolume(float volume);
57
58 MCNAPI void stop();
59
61 // NOLINTEND
62
63public:
64 // constructor thunks
65 // NOLINTBEGIN
66 MCNAPI void* $ctor(
69 ::std::string soundEventId,
70 ::std::shared_ptr<::ServerSoundRuntime::Definition const> definition,
71 int loopCount,
72 ::std::optional<::NetworkIdentifierWithSubId> recipient
73 );
74 // NOLINTEND
75
76public:
77 // destructor thunk
78 // NOLINTBEGIN
79 MCNAPI void $dtor();
80 // NOLINTEND
81};
Definition ServerSoundHandle.h:5
Definition ServerSoundInstanceManager.h:19
MCAPI void seekTo(float seconds)
MCAPI ~ServerSoundInstance()
MCAPI void setPitch(float pitch)
MCAPI void stop()
MCAPI void resume()
MCAPI void setVolume(float volume)
MCAPI void * $ctor(::ServerSoundHandle handle, ::ServerSoundInstanceManager &manager, ::std::string soundEventId, ::std::shared_ptr<::ServerSoundRuntime::Definition const > definition, int loopCount, ::std::optional<::NetworkIdentifierWithSubId > recipient)
MCAPI float getPlaybackPosition(::std::chrono::steady_clock::time_point now) const
MCAPI::ServerSoundInstance & operator=(::ServerSoundInstance &&other)
MCAPI ServerSoundInstance(::ServerSoundHandle handle, ::ServerSoundInstanceManager &manager, ::std::string soundEventId, ::std::shared_ptr<::ServerSoundRuntime::Definition const > definition, int loopCount, ::std::optional<::NetworkIdentifierWithSubId > recipient)
MCAPI void $dtor()
MCAPI void pause()
Definition NetworkIdentifierWithSubId.h:10
Definition Definition.h:7
Definition Alias.h:14