VRage.Game.ModAPI
IMySlimBlock
Assembly: VRage.Game.dll
public interface IMySlimBlock: IMySlimBlock, IMyDestroyableObject, IMyDecalProxy
Basic block interface (Mod api interface)
Properties
| Member | Description |
|---|---|
| BlockDefinition | The blocks definition (cast to MyCubeBlockDefinition) |
| BlockGeneralDamageModifier | Allows you to get or set the damage modifier of a block. |
| BuiltBy | Identity ID of the builder of this block. |
| ComponentStack | Gets the component stack of the block |
| CubeGrid | Gets the grid the slimblock is on |
| Dithering | Sets the transparency of the block. |
| FatBlock | Gets the fatblock if there is one |
| IsMovedBySplit | Gets if the block is in process of being moved from one grid to the other. Happens when grid splits to two. |
| Max | Largest part of block |
| Min | Min position in the grid |
| Orientation | Blocks orientation |
| AccumulatedDamage | Current accumlated damage, pending application Inherited from IMySlimBlock |
| BlockDefinition | Block definition ID Inherited from IMySlimBlock |
| BuildIntegrity | Build integrity (of components) Inherited from IMySlimBlock |
| BuildLevelRatio | Ratio of BuildIntegrity and MaxIntegrity Inherited from IMySlimBlock |
| ColorMaskHSV | Gets the color of the block Inherited from IMySlimBlock |
| CubeGrid | Gets the grid the slimblock is on Inherited from IMySlimBlock |
| CurrentDamage | BuildIntegrity - Integrity Inherited from IMySlimBlock |
| DamageRatio | Inherited from IMySlimBlock |
| FatBlock | Gets the fatblock if there is one Inherited from IMySlimBlock |
| HasDeformation | If this block is deformed (bones deformed) Inherited from IMySlimBlock |
| Integrity | Gets the integrity (health) of the object Inherited from IMyDestroyableObject |
| IsDestroyed | Gets if component stack is empty Inherited from IMySlimBlock |
| IsFullIntegrity | Integrity is at maximum Inherited from IMySlimBlock |
| IsFullyDismounted | Gets if component stack is empty Inherited from IMySlimBlock |
| Mass | Block mass Inherited from IMySlimBlock |
| MaxDeformation | Maximum deformation of block Inherited from IMySlimBlock |
| MaxIntegrity | The maximum integrity of block Inherited from IMySlimBlock |
| OwnerId | Fatblock owner, if present; otherwise grid owner Inherited from IMySlimBlock |
| Position | Grid relative position of block Inherited from IMySlimBlock |
| ShowParts | Gets if sub parts are shown Inherited from IMySlimBlock |
| SkinSubtypeId | Gets the skin of the block Inherited from IMySlimBlock |
| StockpileAllocated | A component stockpile has been allocated Inherited from IMySlimBlock |
| StockpileEmpty | The component stockpile is empty (no build components) Inherited from IMySlimBlock |
| UseDamageSystem | When set to true, it should use MyDamageSystem damage routing. Inherited from IMyDestroyableObject |
| Neighbours | Obsolete: Allocates memory, Use GetNeighbours function OBSOLETE: allocates memory use GetNeighbours function. The blocks that neighbour this block |
Methods
| Member | Description |
|---|---|
| AddNeighbours() | Calls function that adds neighbours to block |
| ApplyAccumulatedDamage(bool) | When damage is less than threshold, applies not |
| CalculateCurrentModel(out Matrix) | Get current model for block. When block is not functional, it would return current construction model |
| CanContinueBuild(IMyInventory) | Can we continue to weld this block? |
| ClearConstructionStockpile(IMyInventory) | Clears out the construction stockpile and moves the components into a destination inventory |
| ComputeScaledCenter(out Vector3D) | Gets the block center as a Vector3D, relative to grid WorldMatrix |
| ComputeScaledHalfExtents(out Vector3) | Gets the half extents for the block |
| ComputeWorldCenter(out Vector3D) | Gets the world position for the center of the block |
| DecreaseMountLevel(float, IMyInventory, bool) | Decreases the build level of a block |
| FixBones(float, float) | Repair block deformation |
| FullyDismount(IMyInventory) | Reset built level to 0 |
| GetColorMask() | Gets block color |
| GetConstructionStockpileItemAmount(MyDefinitionId) | Get the amount of items in the construction stockpile |
| GetNeighbours(ICollection |
The blocks that neighbour this block. Doesn't allocate memory |
| GetObjectBuilder(bool) | Gets the object builder for the slimblock |
| GetWorldBoundingBox(out BoundingBoxD, bool) | The AABB of this block |
| IncreaseMountLevel(float, long, IMyInventory, float, bool, MyOwnershipShareModeEnum) | Increases the build level of a block |
| InitOrientation(ref Vector3I, ref Vector3I) | Sets orientation of block |
| InitOrientation(Direction, Direction) | |
| InitOrientation(MyBlockOrientation) | Sets orientation of block |
| MoveItemsFromConstructionStockpile(IMyInventory, MyItemFlags) | Transfer construction components from inventory to stockpile |
| MoveItemsToConstructionStockpile(IMyInventory) | Move items missing from an inventory into the construction stockpile |
| PlayConstructionSound(MyIntegrityChangeEnum, bool) | Play the construction sound associated with the integrity change |
| RemoveNeighbours() | Removes block neighbours |
| SetToConstructionSite() | Resets welded integrity to minimal value |
| SpawnConstructionStockpile() | Spawn contents of construction stockpile |
| SpawnFirstItemInConstructionStockpile() | Adds the first component to the stockpile |
| UpdateVisual() | Drops visual cache. May fix some render problems. |
| AddDecals(ref MyHitInfo, MyStringHash, Vector3, object, IMyDecalHandler, MyStringHash, MyStringHash, bool, MyDecalFlags, int, List |
Called from Sandbox.Game.MyDecals Inherited from IMyDecalProxy |
| DoDamage(float, MyStringHash, bool, MyHitInfo?, long, long, bool, MyStringHash?) | Applies damage to an object Inherited from IMyDestroyableObject |
| GetMissingComponents(Dictionary<string, int>) | Gets the list of missing components for this block Inherited from IMySlimBlock |
| OnDestroy() | Inherited from IMyDestroyableObject |
| GetCopyObjectBuilder() | Obsolete: GetCopyObjectBuilder() is deprecated. Call GetObjectBuilder(bool) and pass 'true'. |
Implements: