‪TechbloxModdingAPI  ‪v2.2.0
‪The unofficial Techblox modding API
TechbloxModdingAPI.Blocks.Engines.BlockEngine Class Reference

Engine for executing general block actions More...

Inheritance diagram for TechbloxModdingAPI.Blocks.Engines.BlockEngine:
TechbloxModdingAPI.Engines.IApiEngine

Public Member Functions

bool BlockExists (EGID blockID)
 
float4 ConvertBlockColor (byte index)
 
void Dispose ()
 
EGID? FindBlockEGID (uint id)
 
ref T GetBlockInfo< T > (Block block)
 
ref T GetBlockInfoViewComponent< T > (Block block)
 
Block[] GetBodyBlocks (uint sbid)
 
Cluster GetCluster (uint sbid)
 
SimBody[] GetClusterBodies (uint cid)
 
Block[] GetConnectedBlocks (EGID blockID)
 
SimBody[] GetConnectedSimBodies (uint id)
 
ObjectID[] GetObjectIDsFromID (byte id)
 
SimBody[] GetSimBodiesFromID (byte id)
 
void Ready ()
 
void UpdateBlockColor (EGID id)
 
void UpdateDisplayedBlock (EGID id)
 

Public Attributes

bool isRemovable => false
 

Package Functions

object GetBlockInfo (Block block, Type type, string name)
 
ref T GetBlockInfo< T > (EcsObjectBase obj)
 
void SetBlockInfo (Block block, Type type, string name, object value)
 
void UpdatePrefab (Block block, byte material, bool flipped)
 

Properties

EntitiesDB entitiesDB [set]
 
string Name = "TechbloxModdingAPIBlockGameEngine" [get]
 

Detailed Description

Engine for executing general block actions

Member Function Documentation

◆ BlockExists()

bool TechbloxModdingAPI.Blocks.Engines.BlockEngine.BlockExists ( EGID  blockID)
inline

◆ ConvertBlockColor()

float4 TechbloxModdingAPI.Blocks.Engines.BlockEngine.ConvertBlockColor ( byte  index)
inline

◆ Dispose()

void TechbloxModdingAPI.Blocks.Engines.BlockEngine.Dispose ( )
inline

◆ FindBlockEGID()

EGID? TechbloxModdingAPI.Blocks.Engines.BlockEngine.FindBlockEGID ( uint  id)
inline

◆ GetBlockInfo()

object TechbloxModdingAPI.Blocks.Engines.BlockEngine.GetBlockInfo ( Block  block,
Type  type,
string  name 
)
inlinepackage

◆ GetBlockInfo< T >() [1/2]

Type Constraints
T :unmanaged 
T :IEntityComponent 

◆ GetBlockInfo< T >() [2/2]

Type Constraints
T :unmanaged 
T :IEntityComponent 

◆ GetBlockInfoViewComponent< T >()

ref T TechbloxModdingAPI.Blocks.Engines.BlockEngine.GetBlockInfoViewComponent< T > ( Block  block)
inline
Type Constraints
T :struct 
T :IEntityViewComponent 

◆ GetBodyBlocks()

Block [] TechbloxModdingAPI.Blocks.Engines.BlockEngine.GetBodyBlocks ( uint  sbid)
inline

◆ GetCluster()

Cluster TechbloxModdingAPI.Blocks.Engines.BlockEngine.GetCluster ( uint  sbid)
inline

◆ GetClusterBodies()

SimBody [] TechbloxModdingAPI.Blocks.Engines.BlockEngine.GetClusterBodies ( uint  cid)
inline

◆ GetConnectedBlocks()

Block [] TechbloxModdingAPI.Blocks.Engines.BlockEngine.GetConnectedBlocks ( EGID  blockID)
inline

◆ GetConnectedSimBodies()

SimBody [] TechbloxModdingAPI.Blocks.Engines.BlockEngine.GetConnectedSimBodies ( uint  id)
inline

◆ GetObjectIDsFromID()

ObjectID [] TechbloxModdingAPI.Blocks.Engines.BlockEngine.GetObjectIDsFromID ( byte  id)
inline

◆ GetSimBodiesFromID()

SimBody [] TechbloxModdingAPI.Blocks.Engines.BlockEngine.GetSimBodiesFromID ( byte  id)
inline

◆ Ready()

void TechbloxModdingAPI.Blocks.Engines.BlockEngine.Ready ( )
inline

◆ SetBlockInfo()

void TechbloxModdingAPI.Blocks.Engines.BlockEngine.SetBlockInfo ( Block  block,
Type  type,
string  name,
object  value 
)
inlinepackage

◆ UpdateBlockColor()

void TechbloxModdingAPI.Blocks.Engines.BlockEngine.UpdateBlockColor ( EGID  id)
inline

◆ UpdateDisplayedBlock()

void TechbloxModdingAPI.Blocks.Engines.BlockEngine.UpdateDisplayedBlock ( EGID  id)
inline

◆ UpdatePrefab()

void TechbloxModdingAPI.Blocks.Engines.BlockEngine.UpdatePrefab ( Block  block,
byte  material,
bool  flipped 
)
inlinepackage

Member Data Documentation

◆ isRemovable

bool TechbloxModdingAPI.Blocks.Engines.BlockEngine.isRemovable => false

Property Documentation

◆ entitiesDB

EntitiesDB TechbloxModdingAPI.Blocks.Engines.BlockEngine.entitiesDB
set

◆ Name

string TechbloxModdingAPI.Blocks.Engines.BlockEngine.Name = "TechbloxModdingAPIBlockGameEngine"
get

The documentation for this class was generated from the following file: