26class ScriptPrimitiveShape {
29 enum class Flags : uint {
39 UpdateLineEndLocation = 512,
40 UpdateArrowHeadLength = 1024,
41 UpdateArrowHeadRadius = 2048,
42 UpdateSegmentCount = 4096,
43 UpdateAttachedTo = 8192,
44 UpdateRenderDist = 16384,
45 SerializeAll = 4294967294,
48 using FlagsStorage = uint;
53 ::ll::TypedStorage<1, 1, ::ScriptModuleMinecraft::ScriptPrimitiveShapeType> mShapeType;
54 ::ll::TypedStorage<8, 32, ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptDimension>>
56 ::ll::TypedStorage<4, 4, ::DimensionType> mDimensionId;
57 ::ll::TypedStorage<4, 12, ::Vec3> mLocation;
58 ::ll::TypedStorage<4, 12, ::Vec3> mRotation;
59 ::ll::TypedStorage<4, 4, float> mScale;
60 ::ll::TypedStorage<8, 24, ::ScriptModuleMinecraft::ScriptRGBA> mColor;
61 ::ll::TypedStorage<4, 8, ::std::optional<float>> mTimeLeftSec;
62 ::ll::TypedStorage<4, 8, ::std::optional<float>> mTimeLeftTotalSec;
63 ::ll::TypedStorage<4, 8, ::std::optional<float>> mMaxRenderDistance;
65 TypedStorage<8, 24, ::std::vector<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayer>>>
67 ::ll::TypedStorage<8, 16, ::std::set<::NetworkIdentifierWithSubId>> mVisibleToClients;
68 ::ll::TypedStorage<8, 16, ::std::set<::NetworkIdentifierWithSubId>> mSentToClients;
69 ::ll::TypedStorage<8, 8, uint64> mNetworkId;
70 ::ll::TypedStorage<4, 4, uint> mFlags;
71 ::ll::TypedStorage<1, 1, bool> mExistsInWorld;
73 TypedStorage<8, 40, ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActor>>>
75 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mAttachedToId;
76 ::ll::TypedStorage<1, 1, bool> mAttachedEntityWasUnloaded;
77 ::ll::TypedStorage<1, 1, bool> mIsDebugShape;
82 ScriptPrimitiveShape();
87 virtual ~ScriptPrimitiveShape();
97 MCFOLD
bool IsDebugShape()
const;
101 MCAPI ScriptPrimitiveShape(::ScriptModuleMinecraft::ScriptPrimitiveShapeType shapeType,
bool isDebugShape);
103 MCAPI ScriptPrimitiveShape(
104 ::ScriptModuleMinecraft::ScriptPrimitiveShapeType shapeType,
105 ::std::variant<::ScriptModuleMinecraft::ScriptDimensionLocation, ::Vec3>
const& location,
109 MCAPI
void addToWorld();
111 MCFOLD
bool existsInWorld()
const;
113 MCFOLD ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActor>>
const&
114 getAttachedTo()
const;
117 MCFOLD ::ActorUniqueID getAttachedToId()
const;
120 MCFOLD ::ScriptModuleMinecraft::ScriptRGBA
const& getColor()
const;
122 MCAPI ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptDimension> getDimension()
const;
125 MCAPI ::DimensionType getDimensionId()
const;
128 MCFOLD uint getFlags()
const;
130 MCAPI ::Vec3 getLocation()
const;
132 MCFOLD ::std::optional<float> getMaxRenderDistance()
const;
134 MCFOLD uint64 getNetworkId()
const;
136 MCFOLD ::Vec3
const& getRotation()
const;
138 MCFOLD
float getScale()
const;
140 MCFOLD ::std::set<::NetworkIdentifierWithSubId>& getSentToClients();
143 MCFOLD ::ScriptModuleMinecraft::ScriptPrimitiveShapeType getShapeType()
const;
146 MCAPI ::std::optional<float> getTimeLeftSec()
const;
148 MCFOLD ::std::optional<float> getTotalTimeLeftSec()
const;
150 MCFOLD ::std::vector<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayer>>
const&
151 getVisibleTo()
const;
153 MCFOLD ::std::set<::NetworkIdentifierWithSubId>
const& getVisibleToClients()
const;
155 MCAPI
bool hasDuration()
const;
157 MCAPI
bool isDirty()
const;
159 MCAPI
bool isFlaggedToRemove()
const;
161 MCAPI
bool isNewShape()
const;
163 MCAPI
void markAttachedEntityReloaded();
165 MCAPI ::ScriptModuleMinecraft::ScriptPrimitiveShape&
170 MCAPI
void setAttachedEntityWasUnloaded(
bool unloaded);
172 MCAPI
void setAttachedTo(
178 MCFOLD
void setFlags(uint flags);
180 MCAPI
void setLocation(::std::variant<::ScriptModuleMinecraft::ScriptDimensionLocation, ::Vec3>
const& location);
182 MCAPI
void setMaxRenderDistance(::std::optional<float> dist);
184 MCFOLD
void setNetworkId(uint64 networkId);
186 MCAPI
void setRotation(
::Vec3 const& rotation);
188 MCAPI
void setScale(
float scale);
190 MCAPI
void setTotalTimeLeft(::std::optional<float> timeSec);
192 MCAPI
void setVisibleTo(
196 MCAPI
void tickTimeLeft(
float dt);
198 MCAPI
void unDirty();
200 MCFOLD
bool wasAttachedEntityUnloaded()
const;
206 MCAPI static ::Scripting::ClassBinding bind();
214 MCAPI
void* $ctor(::ScriptModuleMinecraft::ScriptPrimitiveShapeType shapeType,
bool isDebugShape);
217 ::ScriptModuleMinecraft::ScriptPrimitiveShapeType shapeType,
218 ::std::variant<::ScriptModuleMinecraft::ScriptDimensionLocation, ::Vec3>
const& location,