26class DevConsoleCommandOrigin :
public ::CommandOrigin {
30 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mPlayerId;
31 ::ll::TypedStorage<8, 8, ::Level*> mLevel;
32 ::ll::TypedStorage<8, 176, ::NetworkIdentifier> mSourceId;
33 ::ll::TypedStorage<1, 1, ::SubClientId> mSourceSubId;
40 DevConsoleCommandOrigin();
46 virtual ~DevConsoleCommandOrigin() =
default;
48 virtual ::std::string
const& getRequestId()
const ;
50 virtual ::std::string getName()
const ;
52 virtual ::BlockPos getBlockPosition()
const ;
54 virtual ::Vec3 getWorldPosition()
const ;
56 virtual ::std::optional<::Vec2> getRotation()
const ;
58 virtual ::Level* getLevel()
const ;
60 virtual ::Dimension* getDimension()
const ;
62 virtual ::Actor* getEntity()
const ;
64 virtual ::CommandPermissionLevel getPermissionsLevel()
const ;
66 virtual ::std::unique_ptr<::CommandOrigin> clone()
const ;
68 virtual bool canUseCommandsWithoutCheatsEnabled()
const ;
70 virtual bool isSelectorExpansionAllowed()
const ;
72 virtual ::NetworkIdentifier
const& getSourceId()
const ;
74 virtual ::SubClientId getSourceSubId()
const ;
76 virtual ::CommandOriginType getOriginType()
const ;
78 virtual ::CommandOriginData toCommandOriginData()
const ;
80 virtual ::CompoundTag serialize()
const ;
82 virtual bool isValid()
const ;
84 virtual bool requiresValidLevel()
const ;
91 MCNAPI
explicit DevConsoleCommandOrigin(
::Player& player);
99 MCNAPI
void* $ctor(
::Player& player);
107 MCNAPI ::std::string
const& $getRequestId()
const;
109 MCNAPI ::std::string $getName()
const;
111 MCNAPI ::BlockPos $getBlockPosition()
const;
113 MCNAPI ::Vec3 $getWorldPosition()
const;
115 MCNAPI ::std::optional<::Vec2> $getRotation()
const;
117 MCNAPI ::Level* $getLevel()
const;
119 MCNAPI ::Dimension* $getDimension()
const;
121 MCNAPI ::Actor* $getEntity()
const;
123 MCNAPI ::CommandPermissionLevel $getPermissionsLevel()
const;
125 MCNAPI ::std::unique_ptr<::CommandOrigin> $clone()
const;
127 MCNAPI
bool $canUseCommandsWithoutCheatsEnabled()
const;
129 MCNAPI
bool $isSelectorExpansionAllowed()
const;
131 MCNAPI ::NetworkIdentifier
const& $getSourceId()
const;
133 MCNAPI ::SubClientId $getSourceSubId()
const;
135 MCNAPI ::CommandOriginType $getOriginType()
const;
137 MCNAPI ::CommandOriginData $toCommandOriginData()
const;
139 MCNAPI ::CompoundTag $serialize()
const;
141 MCNAPI
bool $isValid()
const;
143 MCNAPI
bool $requiresValidLevel()
const;