Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Sandbox.ModAPI.Ingame.TerminalBlockExtentions

Morten Aune Lyrstad edited this page May 8, 2022 · 48 revisions

IndexNamespace Index

TerminalBlockExtentions Class

public abstract sealed class TerminalBlockExtentions

Class having some sugar extensions. Written by Kalvin Osborne, AKA Night Lone.

Namespace: Sandbox.ModAPI.Ingame
Assembly: Sandbox.Common.dll

Methods

static void ApplyAction(this IMyTerminalBlock block, string actionName)

Finds action by GetActionWithName(string) and calls Apply(IMyCubeBlock)

static void ApplyAction(this IMyTerminalBlock block, string actionName, List<TerminalActionParameter> parameters)

Finds action by GetActionWithName(string) and calls Apply(IMyCubeBlock, ListReader)

static long GetId(this IMyTerminalBlock block)

Get EntityId of block

static bool HasAction(this IMyTerminalBlock block, string actionName)

Searches for terminal action with name

static IMyInventory GetInventory(this IMyTerminalBlock block, int index)

Obsolete: Use the GetInventoryBase method.

Obsolete

static int GetInventoryCount(this IMyTerminalBlock block)

Obsolete: Use the InventoryCount property.

Obsolete

static bool GetUseConveyorSystem(this IMyTerminalBlock block)

Obsolete: Use the blocks themselves, this method is no longer reliable

Obsolete

static bool HasInventory(this IMyTerminalBlock block)

Obsolete: Use the HasInventory property.

Obsolete

static void SetUseConveyorSystem(this IMyTerminalBlock block, bool use)

Obsolete: Use the blocks themselves, this method is no longer reliable

Obsolete

Clone this wiki locally