Interface IBlockDefinition
Basisinterface für eine Blockdefinition
Vererbte Member
Namespace: OctoAwesome
Assembly: OctoAwesome.dll
Syntax
public interface IBlockDefinition : IInventoryableDefinition, IDefinition
Eigenschaften
HasMetaData
Zeigt, ob der Block-Typ Metadaten besitzt
Deklaration
bool HasMetaData { get; }
Wert der Eigenschaft
Typ | Beschreibung |
---|---|
System.Boolean |
SolidWall
Deklaration
uint SolidWall { get; }
Wert der Eigenschaft
Typ | Beschreibung |
---|---|
System.UInt32 |
Textures
Array, das alle Texturen für alle Seiten des Blocks enthält
Deklaration
string[] Textures { get; }
Wert der Eigenschaft
Typ | Beschreibung |
---|---|
System.String[] |
Methoden
GetCollisionBoxes(ILocalChunkCache, Int32, Int32, Int32)
Liefert die Kollisionsbox für den Block. Da ein Array zurück gegeben wird, lässt sich die
Deklaration
BoundingBox[] GetCollisionBoxes(ILocalChunkCache manager, int x, int y, int z)
Parameter
Typ | Name | Beschreibung |
---|---|---|
ILocalChunkCache | manager | [Bitte ergänzen] |
System.Int32 | x | X-Anteil der Koordinate des Blocks |
System.Int32 | y | Y-Anteil der Koordinate des Blocks |
System.Int32 | z | Z-Anteil der Koordinate des Blocks |
R�ckgabewert
Typ | Beschreibung |
---|---|
BoundingBox[] | Ein Array von Kollisionsboxen |
GetTextureIndex(Wall, ILocalChunkCache, Int32, Int32, Int32)
Deklaration
int GetTextureIndex(Wall wall, ILocalChunkCache manager, int x, int y, int z)
Parameter
Typ | Name | Beschreibung |
---|---|---|
Wall | wall | |
ILocalChunkCache | manager | |
System.Int32 | x | |
System.Int32 | y | |
System.Int32 | z |
R�ckgabewert
Typ | Beschreibung |
---|---|
System.Int32 |
GetTextureRotation(Wall, ILocalChunkCache, Int32, Int32, Int32)
Rotation der Textur in 90° Schritten für die Oberseite (Positiv Z) des Blocks
Deklaration
int GetTextureRotation(Wall wall, ILocalChunkCache manager, int x, int y, int z)
Parameter
Typ | Name | Beschreibung |
---|---|---|
Wall | wall | |
ILocalChunkCache | manager | [Bitte ergänzen] |
System.Int32 | x | X-Anteil der Koordinate des Blocks |
System.Int32 | y | Y-Anteil der Koordinate des Blocks |
System.Int32 | z | Z-Anteil der Koordinate des Blocks |
R�ckgabewert
Typ | Beschreibung |
---|---|
System.Int32 | Rotation der Textur in 90° Schritten |
Hit(IBlockDefinition, PhysicalProperties)
Geplante Methode, mit der der Block auf Interaktion von aussen reagieren kann.
Deklaration
void Hit(IBlockDefinition block, PhysicalProperties itemProperties)
Parameter
Typ | Name | Beschreibung |
---|---|---|
IBlockDefinition | block | Der Block-Typ des interagierenden Elements |
PhysicalProperties | itemProperties | Die physikalischen Parameter des interagierenden Elements |
IsSolidWall(Wall)
Deklaration
bool IsSolidWall(Wall wall)
Parameter
Typ | Name | Beschreibung |
---|---|---|
Wall | wall |
R�ckgabewert
Typ | Beschreibung |
---|---|
System.Boolean |