Show / Hide Table of Contents

Interface IMyTerminalBlock

Describes assembler block (mods interface)

Inherited Members
IMyCubeBlock.CalcLocalMatrix(Matrix, String)
IMyCubeBlock.CalculateCurrentModel(Matrix)
IMyCubeBlock.GetObjectBuilderCubeBlock(Boolean)
IMyCubeBlock.Init()
IMyCubeBlock.Init(MyObjectBuilder_CubeBlock, IMyCubeGrid)
IMyCubeBlock.OnBuildSuccess(Int64)
IMyCubeBlock.OnBuildSuccess(Int64, Boolean)
IMyCubeBlock.OnDestroy()
IMyCubeBlock.OnModelChange()
IMyCubeBlock.OnRegisteredToGridSystems()
IMyCubeBlock.OnRemovedByCubeBuilder()
IMyCubeBlock.OnUnregisteredFromGridSystems()
IMyCubeBlock.RaycastDetectors(Vector3D, Vector3D)
IMyCubeBlock.ReloadDetectors(Boolean)
IMyCubeBlock.SetDamageEffect(Boolean)
IMyCubeBlock.SetEffect(String, Boolean)
IMyCubeBlock.SetEffect(String, Single, Boolean, Boolean, Boolean)
IMyCubeBlock.RemoveEffect(String, Int32)
IMyCubeBlock.AddUpgradeValue(String, Single)
IMyCubeBlock.CubeGrid
IMyCubeBlock.ResourceSink
IMyCubeBlock.UpgradeValues
IMyCubeBlock.SlimBlock
IMyCubeBlock.CheckConnectionAllowed
IMyCubeBlock.IsWorkingChanged
IMyCubeBlock.OnUpgradeValuesChanged
IMyCubeBlock.CubeGridChanged
IMyEntity.GetFriendlyName()
IMyEntity.Close()
IMyEntity.Delete()
IMyEntity.GetObjectBuilder(Boolean)
IMyEntity.BeforeSave()
IMyEntity.GetTopMostParent(Type)
IMyEntity.SetLocalMatrix(Matrix, Object)
IMyEntity.GetChildren(List<IMyEntity>, Func<IMyEntity, Boolean>)
IMyEntity.GetSubpart(String)
IMyEntity.TryGetSubpart(String, MyEntitySubpart)
IMyEntity.GetDiffuseColor()
IMyEntity.IsVisible()
IMyEntity.DebugDraw()
IMyEntity.DebugDrawInvalidTriangles()
IMyEntity.EnableColorMaskForSubparts(Boolean)
IMyEntity.SetColorMaskForSubparts(Vector3)
IMyEntity.SetTextureChangesForSubparts(Dictionary<MyStringId, MyTextureChange>)
IMyEntity.SetTextureChangesForSubparts(Dictionary<String, MyTextureChange>)
IMyEntity.SetEmissiveParts(String, Color, Single)
IMyEntity.SetEmissivePartsForSubparts(String, Color, Single)
IMyEntity.GetDistanceBetweenCameraAndBoundingSphere()
IMyEntity.GetDistanceBetweenCameraAndPosition()
IMyEntity.GetLargestDistanceBetweenCameraAndBoundingSphere()
IMyEntity.GetSmallestDistanceBetweenCameraAndBoundingSphere()
IMyEntity.OnRemovedFromScene(Object)
IMyEntity.OnAddedToScene(Object)
IMyEntity.GetViewMatrix()
IMyEntity.GetWorldMatrixNormalizedInv()
IMyEntity.SetWorldMatrix(MatrixD, Object)
IMyEntity.SetPosition(Vector3D)
IMyEntity.Teleport(MatrixD, Object, Boolean)
IMyEntity.GetIntersectionWithLine(LineD, Nullable<MyIntersectionResultLineTriangleEx>, IntersectionFlags)
IMyEntity.GetIntersectionWithLineAndBoundingSphere(LineD, Single)
IMyEntity.GetIntersectionWithSphere(BoundingSphereD)
IMyEntity.GetIntersectionWithAABB(BoundingBoxD)
IMyEntity.GetTrianglesIntersectingSphere(BoundingSphere, Nullable<Vector3>, Nullable<Single>, List<MyTriangle_Vertex_Normals>, Int32)
IMyEntity.DoOverlapSphereTest(Single, Vector3D)
IMyEntity.GetInventory()
IMyEntity.GetInventory(Int32)
IMyEntity.AddToGamePruningStructure()
IMyEntity.RemoveFromGamePruningStructure()
IMyEntity.UpdateGamePruningStructure()
IMyEntity.Physics
IMyEntity.PositionComp
IMyEntity.Render
IMyEntity.GameLogic
IMyEntity.Hierarchy
IMyEntity.SyncObject
IMyEntity.Storage
IMyEntity.Flags
IMyEntity.EntityId
IMyEntity.Name
IMyEntity.MarkedForClose
IMyEntity.DebugAsyncLoading
IMyEntity.Save
IMyEntity.PersistentFlags
IMyEntity.Model
IMyEntity.ModelCollision
IMyEntity.Synchronized
IMyEntity.NeedsUpdate
IMyEntity.Parent
IMyEntity.LocalMatrix
IMyEntity.NearFlag
IMyEntity.CastShadows
IMyEntity.FastCastShadowResolve
IMyEntity.NeedsResolveCastShadow
IMyEntity.MaxGlassDistSq
IMyEntity.NeedsDraw
IMyEntity.NeedsDrawFromParent
IMyEntity.Transparent
IMyEntity.ShadowBoxLod
IMyEntity.SkipIfTooSmall
IMyEntity.Visible
IMyEntity.NeedsWorldMatrix
IMyEntity.InScene
IMyEntity.InvalidateOnMove
IMyEntity.WorldMatrix
IMyEntity.WorldMatrixInvScaled
IMyEntity.WorldMatrixNormalizedInv
IMyEntity.IsVolumetric
IMyEntity.LocalAABB
IMyEntity.LocalAABBHr
IMyEntity.LocalVolume
IMyEntity.LocalVolumeOffset
IMyEntity.LocationForHudMarker
IMyEntity.IsCCDForProjectiles
IMyEntity.DisplayName
IMyEntity.StopPhysicsActivation
IMyEntity.OnClose
IMyEntity.OnClosing
IMyEntity.OnMarkForClose
IMyEntity.OnPhysicsChanged
IMyTerminalBlock.HasLocalPlayerAccess()
IMyTerminalBlock.HasPlayerAccess(Int64, MyRelationsBetweenPlayerAndBlock)
IMyTerminalBlock.HasNobodyPlayerAccessToBlock()
IMyTerminalBlock.HasPlayerAccessWithNobodyCheck(Int64, Boolean)
IMyTerminalBlock.SetCustomName(String)
IMyTerminalBlock.SetCustomName(StringBuilder)
IMyTerminalBlock.GetActions(List<ITerminalAction>, Func<ITerminalAction, Boolean>)
IMyTerminalBlock.SearchActionsOfName(String, List<ITerminalAction>, Func<ITerminalAction, Boolean>)
IMyTerminalBlock.GetActionWithName(String)
IMyTerminalBlock.GetProperty(String)
IMyTerminalBlock.GetProperties(List<ITerminalProperty>, Func<ITerminalProperty, Boolean>)
IMyTerminalBlock.IsSameConstructAs(IMyTerminalBlock)
IMyTerminalBlock.CustomName
IMyTerminalBlock.CustomNameWithFaction
IMyTerminalBlock.DetailedInfo
IMyTerminalBlock.CustomInfo
IMyTerminalBlock.CustomData
IMyTerminalBlock.ShowOnHUD
IMyTerminalBlock.ShowInTerminal
IMyTerminalBlock.ShowInToolbarConfig
IMyTerminalBlock.ShowInInventory
IMyCubeBlock.GetOwnerFactionTag()
IMyCubeBlock.GetPlayerRelationToOwner()
IMyCubeBlock.GetUserRelationToOwner(Int64, MyRelationsBetweenPlayerAndBlock)
IMyCubeBlock.UpdateIsWorking()
IMyCubeBlock.UpdateVisual()
IMyCubeBlock.BlockDefinition
IMyCubeBlock.DefinitionDisplayNameText
IMyCubeBlock.DisassembleRatio
IMyCubeBlock.DisplayNameText
IMyCubeBlock.IsBeingHacked
IMyCubeBlock.IsFunctional
IMyCubeBlock.IsWorking
IMyCubeBlock.Max
IMyCubeBlock.Mass
IMyCubeBlock.Min
IMyCubeBlock.NumberInGrid
IMyCubeBlock.Orientation
IMyCubeBlock.OwnerId
IMyCubeBlock.Position
IMyEntity.GetPosition()
IMyEntity.Components
IMyEntity.HasInventory
IMyEntity.InventoryCount
IMyEntity.Closed
IMyEntity.WorldAABB
IMyEntity.WorldAABBHr
IMyEntity.WorldVolume
IMyEntity.WorldVolumeHr
Namespace: Sandbox.ModAPI
Assembly: Sandbox.Common.dll
Syntax
public interface IMyTerminalBlock : IMyCubeBlock, IMyEntity, IMyTerminalBlock, IMyCubeBlock, IMyEntity

Properties

IsDetailedInfoDirty

Gets whether detailed info is dirty and to be updated

Declaration
bool IsDetailedInfoDirty { get; }
Property Value
Type Description
System.Boolean

Methods

ClearDetailedInfo()

Clears detailed info

Declaration
void ClearDetailedInfo()

GetDetailedInfo()

Gets detailed info instance

Declaration
StringBuilder GetDetailedInfo()
Returns
Type Description
System.Text.StringBuilder

IsInSameLogicalGroupAs(IMyTerminalBlock)

Determines whether this block is in the same logical group as the other, meaning they're connected either mechanically or via blocks like connectors. Be aware that using merge blocks combines grids into one, so this function will not filter out grids connected that way.

Declaration
bool IsInSameLogicalGroupAs(IMyTerminalBlock other)
Parameters
Type Name Description
IMyTerminalBlock other

Block

Returns
Type Description
System.Boolean

True if blocks belongs to same grids, or their grids connected with Logical

IsSameConstructAs(IMyTerminalBlock)

Determines whether this block is mechanically connected to the other. This is any block connected with rotors or pistons or other mechanical devices, but not things like connectors. This will in most cases constitute your complete construct. Be aware that using merge blocks combines grids into one, so this function will not filter out grids connected that way.

Declaration
bool IsSameConstructAs(IMyTerminalBlock other)
Parameters
Type Name Description
IMyTerminalBlock other
Returns
Type Description
System.Boolean

True if blocks belongs to same grids, or their grids connected with Logical

RefreshCustomInfo()

Raises AppendingCustomInfo so every subscriber can append custom info.

Declaration
void RefreshCustomInfo()

SetDetailedInfoDirty()

Sets detailed info dirty and to be updated

Declaration
void SetDetailedInfoDirty()

Events

AppendingCustomInfo

Event to append custom info.

Declaration
event Action<IMyTerminalBlock, StringBuilder> AppendingCustomInfo
Event Type
Type Description
System.Action<IMyTerminalBlock, System.Text.StringBuilder>

CustomDataChanged

Called when custom data of block changed

Declaration
event Action<IMyTerminalBlock> CustomDataChanged
Event Type
Type Description
System.Action<IMyTerminalBlock>

CustomNameChanged

Called when custom name of block changed

Declaration
event Action<IMyTerminalBlock> CustomNameChanged
Event Type
Type Description
System.Action<IMyTerminalBlock>

OwnershipChanged

Called when block ownership changed

Declaration
event Action<IMyTerminalBlock> OwnershipChanged
Event Type
Type Description
System.Action<IMyTerminalBlock>

PropertiesChanged

Called when any of block properties changed. It could be anything, starting from CustomName ending with Inventory items

Declaration
event Action<IMyTerminalBlock> PropertiesChanged
Event Type
Type Description
System.Action<IMyTerminalBlock>

ShowOnHUDChanged

Called when ShowOnHUD Changed

Declaration
event Action<IMyTerminalBlock> ShowOnHUDChanged
Event Type
Type Description
System.Action<IMyTerminalBlock>

VisibilityChanged

Called properties that modify the visibility of this block's controls, are changed

Declaration
event Action<IMyTerminalBlock> VisibilityChanged
Event Type
Type Description
System.Action<IMyTerminalBlock>

Extension Methods

TerminalBlockExtentions.GetId(IMyTerminalBlock)
TerminalBlockExtentions.ApplyAction(IMyTerminalBlock, String)
TerminalBlockExtentions.ApplyAction(IMyTerminalBlock, String, List<TerminalActionParameter>)
TerminalBlockExtentions.HasAction(IMyTerminalBlock, String)
TerminalBlockExtentions.HasInventory(IMyTerminalBlock)
TerminalBlockExtentions.GetInventory(IMyTerminalBlock, Int32)
TerminalBlockExtentions.GetInventoryCount(IMyTerminalBlock)
TerminalBlockExtentions.GetUseConveyorSystem(IMyTerminalBlock)
TerminalBlockExtentions.SetUseConveyorSystem(IMyTerminalBlock, Boolean)
TerminalPropertyExtensions.GetValueFloat(IMyTerminalBlock, String)
TerminalPropertyExtensions.SetValueFloat(IMyTerminalBlock, String, Single)
TerminalPropertyExtensions.GetValueBool(IMyTerminalBlock, String)
TerminalPropertyExtensions.SetValueBool(IMyTerminalBlock, String, Boolean)
TerminalPropertyExtensions.GetValueColor(IMyTerminalBlock, String)
TerminalPropertyExtensions.SetValueColor(IMyTerminalBlock, String, Color)
TerminalPropertyExtensions.GetValue<T>(IMyTerminalBlock, String)
TerminalPropertyExtensions.GetDefaultValue<T>(IMyTerminalBlock, String)
TerminalPropertyExtensions.GetMininum<T>(IMyTerminalBlock, String)
TerminalPropertyExtensions.GetMinimum<T>(IMyTerminalBlock, String)
TerminalPropertyExtensions.GetMaximum<T>(IMyTerminalBlock, String)
TerminalPropertyExtensions.SetValue<T>(IMyTerminalBlock, String, T)
☀
☾
In This Article
  • Properties
    • IsDetailedInfoDirty
  • Methods
    • ClearDetailedInfo()
    • GetDetailedInfo()
    • IsInSameLogicalGroupAs(IMyTerminalBlock)
    • IsSameConstructAs(IMyTerminalBlock)
    • RefreshCustomInfo()
    • SetDetailedInfoDirty()
  • Events
    • AppendingCustomInfo
    • CustomDataChanged
    • CustomNameChanged
    • OwnershipChanged
    • PropertiesChanged
    • ShowOnHUDChanged
    • VisibilityChanged
  • Extension Methods
Back to top
Generated by DocFX
☀
☾