IMyCubeBlock Methods |
[This is preliminary documentation and is subject to change.]
The IMyCubeBlock type exposes the following members.
Name | Description | |
---|---|---|
AddToGamePruningStructure | (Inherited from IMyEntity.) | |
AddUpgradeValue |
Preferred way of registering a block for upgrades
Adding directly to the dictionary can have unintended consequences
when multiple mods are involved.
| |
BeforeSave | (Inherited from IMyEntity.) | |
CalcLocalMatrix | ||
CalculateCurrentModel |
Calculates model currently used by block depending on its build progress and other factors
| |
Close | (Inherited from IMyEntity.) | |
DebugDraw |
Debug only method. Effects may wary through time.
| |
DebugDrawInvalidTriangles | (Inherited from IMyEntity.) | |
Delete | (Inherited from IMyEntity.) | |
DoOverlapSphereTest | (Inherited from IMyEntity.) | |
EnableColorMaskForSubparts | (Inherited from IMyEntity.) | |
GetChildren | (Inherited from IMyEntity.) | |
GetDiffuseColor | (Inherited from IMyEntity.) | |
GetDistanceBetweenCameraAndBoundingSphere | (Inherited from IMyEntity.) | |
GetDistanceBetweenCameraAndPosition | (Inherited from IMyEntity.) | |
GetFriendlyName | (Inherited from IMyEntity.) | |
GetIntersectionWithLineAndBoundingSphere | (Inherited from IMyEntity.) | |
GetIntersectionWithSphere | (Inherited from IMyEntity.) | |
GetLargestDistanceBetweenCameraAndBoundingSphere | (Inherited from IMyEntity.) | |
GetObjectBuilder | (Inherited from IMyEntity.) | |
GetObjectBuilderCubeBlock |
Returns block object builder which can be serialized or added to grid
| |
GetOwnerFactionTag | ||
GetPlayerRelationToOwner | ||
GetPosition | (Inherited from IMyEntity.) | |
GetSmallestDistanceBetweenCameraAndBoundingSphere | (Inherited from IMyEntity.) | |
GetSubpart | (Inherited from IMyEntity.) | |
GetTopMostParent | (Inherited from IMyEntity.) | |
GetTrianglesIntersectingSphere | (Inherited from IMyEntity.) | |
GetUserRelationToOwner | ||
GetViewMatrix | (Inherited from IMyEntity.) | |
GetWorldMatrixNormalizedInv | (Inherited from IMyEntity.) | |
Init |
Reloads block model and interactive objects (doors, terminals, etc...)
| |
Init(MyObjectBuilder_CubeBlock, IMyCubeGrid) |
Initializes block state from object builder
| |
IsVisible | (Inherited from IMyEntity.) | |
OnAddedToScene | (Inherited from IMyEntity.) | |
OnBuildSuccess |
Method called when a block has been built (after adding to the grid).
This is called right after placing the block and it doesn't matter whether
it is fully built (creative mode) or is only construction site.
Note that it is not called for blocks which do not create FatBlock at that moment.
| |
OnDestroy |
Called when block is destroyed before being removed from grid
| |
OnModelChange |
Called when the model referred by the block is changed
| |
OnRegisteredToGridSystems |
Called at the end of registration from grid systems (after block has been registered).
| |
OnRemovedByCubeBuilder |
Method called when user removes a cube block from grid. Useful when block
has to remove some other attached block (like motors).
| |
OnRemovedFromScene | (Inherited from IMyEntity.) | |
OnUnregisteredFromGridSystems |
Called at the end of unregistration from grid systems (after block has been unregistered).
| |
RaycastDetectors |
Gets the name of interactive object intersected by defined line
| |
ReloadDetectors |
Reloads detectors (interactive objects) in model
| |
RemoveFromGamePruningStructure | (Inherited from IMyEntity.) | |
SetColorMaskForSubparts | (Inherited from IMyEntity.) | |
SetDamageEffect |
Start or stop dammage effect on cube block
| |
SetEmissiveParts |
Sets the emissive value of a specific emissive material on entity.
(Inherited from IMyEntity.) | |
SetEmissivePartsForSubparts |
Sets the emissive value of a specific emissive material on all entity subparts.
(Inherited from IMyEntity.) | |
SetLocalMatrix | (Inherited from IMyEntity.) | |
SetPosition | (Inherited from IMyEntity.) | |
SetWorldMatrix | (Inherited from IMyEntity.) | |
TryGetSubpart | (Inherited from IMyEntity.) | |
UpdateGamePruningStructure | (Inherited from IMyEntity.) | |
UpdateIsWorking |
Force refresh working state. Call if you change block state that could affect its working status.
| |
UpdateVisual |
Updates block visuals (ie. block emissivity)
|