25class ScriptPrimitiveShape {
28 enum class Flags : uint {
38 UpdateLineEndLocation = 512,
39 UpdateArrowHeadLength = 1024,
40 UpdateArrowHeadRadius = 2048,
41 UpdateSegmentCount = 4096,
42 UpdateAttachedTo = 8192,
43 UpdateRenderDist = 16384,
44 SerializeAll = 4294967294,
47 using FlagsStorage = uint;
52 ::ll::TypedStorage<1, 1, ::ScriptModuleMinecraft::ScriptPrimitiveShapeType> mShapeType;
53 ::ll::TypedStorage<8, 32, ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptDimension>>
55 ::ll::TypedStorage<4, 4, ::DimensionType> mDimensionId;
56 ::ll::TypedStorage<4, 12, ::Vec3> mLocation;
57 ::ll::TypedStorage<4, 12, ::Vec3> mRotation;
58 ::ll::TypedStorage<4, 4, float> mScale;
59 ::ll::TypedStorage<8, 24, ::ScriptModuleMinecraft::ScriptRGBA> mColor;
60 ::ll::TypedStorage<4, 8, ::std::optional<float>> mTimeLeftSec;
61 ::ll::TypedStorage<4, 8, ::std::optional<float>> mTimeLeftTotalSec;
62 ::ll::TypedStorage<4, 8, ::std::optional<float>> mMaxRenderDistance;
64 TypedStorage<8, 24, ::std::vector<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayer>>>
66 ::ll::TypedStorage<8, 16, ::std::set<::NetworkIdentifierWithSubId>> mVisibleToClients;
67 ::ll::TypedStorage<8, 16, ::std::set<::NetworkIdentifierWithSubId>> mSentToClients;
68 ::ll::TypedStorage<8, 8, uint64> mNetworkId;
69 ::ll::TypedStorage<4, 4, uint> mFlags;
70 ::ll::TypedStorage<1, 1, bool> mExistsInWorld;
72 TypedStorage<8, 40, ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActor>>>
74 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mAttachedToId;
75 ::ll::TypedStorage<1, 1, bool> mAttachedEntityWasUnloaded;
76 ::ll::TypedStorage<1, 1, bool> mIsDebugShape;
81 ScriptPrimitiveShape();
86 virtual ~ScriptPrimitiveShape();
96 MCFOLD
bool IsDebugShape()
const;
100 MCAPI ScriptPrimitiveShape(::ScriptModuleMinecraft::ScriptPrimitiveShapeType shapeType,
bool isDebugShape);
102 MCAPI ScriptPrimitiveShape(
103 ::ScriptModuleMinecraft::ScriptPrimitiveShapeType shapeType,
104 ::std::variant<::ScriptModuleMinecraft::ScriptDimensionLocation, ::Vec3>
const& location,
108 MCAPI
void addToWorld();
110 MCFOLD
bool existsInWorld()
const;
112 MCFOLD ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActor>>
const&
113 getAttachedTo()
const;
116 MCFOLD ::ActorUniqueID getAttachedToId()
const;
119 MCFOLD ::ScriptModuleMinecraft::ScriptRGBA
const& getColor()
const;
121 MCAPI ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptDimension> getDimension()
const;
124 MCAPI ::DimensionType getDimensionId()
const;
127 MCFOLD uint getFlags()
const;
129 MCAPI ::Vec3 getLocation()
const;
131 MCFOLD ::std::optional<float> getMaxRenderDistance()
const;
133 MCFOLD uint64 getNetworkId()
const;
135 MCFOLD ::Vec3
const& getRotation()
const;
137 MCFOLD
float getScale()
const;
139 MCFOLD ::std::set<::NetworkIdentifierWithSubId>& getSentToClients();
142 MCFOLD ::ScriptModuleMinecraft::ScriptPrimitiveShapeType getShapeType()
const;
145 MCAPI ::std::optional<float> getTimeLeftSec()
const;
147 MCFOLD ::std::optional<float> getTotalTimeLeftSec()
const;
149 MCFOLD ::std::vector<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayer>>
const&
150 getVisibleTo()
const;
152 MCFOLD ::std::set<::NetworkIdentifierWithSubId>
const& getVisibleToClients()
const;
154 MCAPI
bool hasDuration()
const;
156 MCAPI
bool isDirty()
const;
158 MCAPI
bool isFlaggedToRemove()
const;
160 MCAPI
bool isNewShape()
const;
162 MCAPI
void markAttachedEntityReloaded();
164 MCAPI ::ScriptModuleMinecraft::ScriptPrimitiveShape&
169 MCAPI
void setAttachedEntityWasUnloaded(
bool unloaded);
171 MCAPI
void setAttachedTo(
177 MCFOLD
void setFlags(uint flags);
179 MCAPI
void setLocation(::std::variant<::ScriptModuleMinecraft::ScriptDimensionLocation, ::Vec3>
const& location);
181 MCAPI
void setMaxRenderDistance(::std::optional<float> dist);
183 MCFOLD
void setNetworkId(uint64 networkId);
185 MCAPI
void setRotation(
::Vec3 const& rotation);
187 MCAPI
void setScale(
float scale);
189 MCAPI
void setTotalTimeLeft(::std::optional<float> timeSec);
191 MCAPI
void setVisibleTo(
195 MCAPI
void tickTimeLeft(
float dt);
197 MCAPI
void unDirty();
199 MCFOLD
bool wasAttachedEntityUnloaded()
const;
205 MCAPI static ::Scripting::ClassBinding bind();
213 MCAPI
void* $ctor(::ScriptModuleMinecraft::ScriptPrimitiveShapeType shapeType,
bool isDebugShape);
216 ::ScriptModuleMinecraft::ScriptPrimitiveShapeType shapeType,
217 ::std::variant<::ScriptModuleMinecraft::ScriptDimensionLocation, ::Vec3>
const& location,