‪GamecraftModdingAPI  ‪v1.8.0
‪The unofficial Gamecraft modding API
GamecraftModdingAPI.Blocks Namespace Reference

Classes

class  BlockCloneEngine
 
struct  BlockColor
 
class  BlockEngine
 ‪Engine for executing general block actions More...
 
class  BlockEventsEngine
 
class  BlockException
 
class  BlockIdentifiers
 ‪ExclusiveGroups and IDs used with blocks More...
 
struct  BlockPlacedRemovedEventArgs
 
class  BlockSpecializationException
 
class  BlockTypeException
 
class  BlueprintEngine
 
class  CustomBlock
 ‪Experimental support for adding custom blocks to the game. More...
 
class  CustomBlockAttribute
 
class  DampedSpring
 
class  LogicGate
 
class  Motor
 
class  MovementEngine
 ‪Engine which executes block movement actions More...
 
class  MusicBlock
 
class  ObjectIdentifier
 
class  Piston
 
class  PlacementEngine
 ‪Engine which executes block placement actions More...
 
class  RemovalEngine
 
class  RotationEngine
 ‪Engine which executes block movement actions More...
 
class  ScalingEngine
 
class  Servo
 
class  SfxBlock
 
class  SignalEngine
 ‪Engine which executes signal actions More...
 
class  SignalingBlock
 ‪Common implementation for blocks that support wiring. More...
 
class  SpawnPoint
 
class  TextBlock
 
class  Timer
 
class  Wire
 
class  WireInvalidException
 
class  WiringException
 

Enumerations

enum  BlockColors : byte {
  BlockColors.Default = byte.MaxValue,
  BlockColors.White = 0,
  BlockColors.Pink,
  BlockColors.Purple,
  BlockColors.Blue,
  BlockColors.Aqua,
  BlockColors.Green,
  BlockColors.Lime,
  BlockColors.Yellow,
  BlockColors.Orange,
  BlockColors.Red
}
 ‪Preset block colours More...
 
enum  BlockIDs : ushort {
  BlockIDs.Invalid = ushort.MaxValue,
  BlockIDs.Cube = 0,
  BlockIDs.Wedge,
  BlockIDs.QuarterPyramid,
  BlockIDs.Tetrahedron,
  BlockIDs.RoundedWedge,
  BlockIDs.RoundedQuarterPyramid,
  BlockIDs.RoundedTetrahedron,
  BlockIDs.NegativeQuarterPyramid,
  BlockIDs.NegativeTetrahedron,
  BlockIDs.RoundedNegativeQuarterPyramid,
  BlockIDs.RoundedNegativeTetrahedron,
  BlockIDs.Plate,
  BlockIDs.PlateWedge,
  BlockIDs.PlateQuarterPyramid,
  BlockIDs.PlateTetrahedron,
  BlockIDs.Sphere,
  BlockIDs.Frame,
  BlockIDs.FrameS1,
  BlockIDs.FrameS2,
  BlockIDs.FrameS3,
  BlockIDs.FrameS4,
  BlockIDs.FrameS5,
  BlockIDs.FrameWedge,
  BlockIDs.FrameWedgeS1,
  BlockIDs.FrameWedgeS2,
  BlockIDs.FrameWedgeS3,
  BlockIDs.FrameWedgeS4,
  BlockIDs.SideS0S1,
  BlockIDs.SideS0S2,
  BlockIDs.SideS0S3,
  BlockIDs.SideS0S4,
  BlockIDs.SideS0S5,
  BlockIDs.SideS1S1,
  BlockIDs.SideS1S2,
  BlockIDs.SideS1S3,
  BlockIDs.SideS1S4,
  BlockIDs.SideS1S5,
  BlockIDs.SideS2S1,
  BlockIDs.SideS2S2,
  BlockIDs.SideS2S3,
  BlockIDs.SideS2S4,
  BlockIDs.SideS2S5,
  BlockIDs.WindscreenS1,
  BlockIDs.WindscreenS2,
  BlockIDs.WindscreenS3,
  BlockIDs.WindscreenS4,
  BlockIDs.WindscreenS5,
  BlockIDs.CarWheelArch,
  BlockIDs.CarArchSmallFlare,
  BlockIDs.CarArchFlare,
  BlockIDs.CarArchExtrudedFlare,
  BlockIDs.Axle = 100,
  BlockIDs.Hinge,
  BlockIDs.BallJoint,
  BlockIDs.UniversalJoint,
  BlockIDs.TelescopicJoint,
  BlockIDs.DampedHingeSpring,
  BlockIDs.DampedAxleSpring,
  BlockIDs.DampedSpring,
  BlockIDs.WheelRigNoSteering,
  BlockIDs.WheelRigWithSteering,
  BlockIDs.PlateTriangle = 130,
  BlockIDs.PlateCircle,
  BlockIDs.PlateQuarterCircle,
  BlockIDs.PlateRWedge,
  BlockIDs.PlateRTetrahedron,
  BlockIDs.Cone,
  BlockIDs.ConeSegment,
  BlockIDs.DoubleSliced,
  BlockIDs.HalfDoubleSliced,
  BlockIDs.EighthPyramid,
  BlockIDs.Hemisphere,
  BlockIDs.WideCylinder,
  BlockIDs.WideCylinderBend,
  BlockIDs.WideCylinderT,
  BlockIDs.WideCylinderCross,
  BlockIDs.WideCylinderCorner,
  BlockIDs.NarrowCylinder,
  BlockIDs.NarrowCylinderBend,
  BlockIDs.NarrowCylinderT,
  BlockIDs.NarrowCylinderCross,
  BlockIDs.DriverSeat,
  BlockIDs.PassengerSeat,
  BlockIDs.Engine,
  BlockIDs.NarrowCylinderCorner,
  BlockIDs.PlateWideCylinder,
  BlockIDs.PlateNarrowCylinder,
  BlockIDs.PlateNegativeTetrahedron,
  BlockIDs.PlateNegativeQuarterPyramid,
  BlockIDs.PlateRoundedNegativeTetrahedron,
  BlockIDs.PlateRoundedNegativeQuarterPyramid,
  BlockIDs.HeadlampSquare,
  BlockIDs.HeadlampCircle,
  BlockIDs.HeadlampWedge,
  BlockIDs.WideCylinderDiagonal,
  BlockIDs.NarrowCylinderDiagonal,
  BlockIDs.HeadlampTetrahedron,
  BlockIDs.CarWheelWideProfile = 200,
  BlockIDs.CarWheel
}
 ‪Possible block types More...
 
enum  BlockMaterial : byte {
  BlockMaterial.Default = byte.MaxValue,
  BlockMaterial.SteelBodywork = 0,
  BlockMaterial.RigidSteel,
  BlockMaterial.CarbonFiber,
  BlockMaterial.Plastic,
  BlockMaterial.Wood
}
 

Enumeration Type Documentation

◆ BlockColors

‪Preset block colours

Enumerator
Default 
White 
Pink 
Purple 
Blue 
Aqua 
Green 
Lime 
Yellow 
Orange 
Red 

◆ BlockIDs

‪Possible block types

Enumerator
Invalid 

Called "nothing" in Gamecraft. (DBID.NOTHING)

Cube 
Wedge 
QuarterPyramid 
Tetrahedron 
RoundedWedge 
RoundedQuarterPyramid 
RoundedTetrahedron 
NegativeQuarterPyramid 
NegativeTetrahedron 
RoundedNegativeQuarterPyramid 
RoundedNegativeTetrahedron 
Plate 
PlateWedge 
PlateQuarterPyramid 
PlateTetrahedron 
Sphere 
Frame 
FrameS1 
FrameS2 
FrameS3 
FrameS4 
FrameS5 
FrameWedge 
FrameWedgeS1 
FrameWedgeS2 
FrameWedgeS3 
FrameWedgeS4 
SideS0S1 
SideS0S2 
SideS0S3 
SideS0S4 
SideS0S5 
SideS1S1 
SideS1S2 
SideS1S3 
SideS1S4 
SideS1S5 
SideS2S1 
SideS2S2 
SideS2S3 
SideS2S4 
SideS2S5 
WindscreenS1 
WindscreenS2 
WindscreenS3 
WindscreenS4 
WindscreenS5 
CarWheelArch 
CarArchSmallFlare 
CarArchFlare 
CarArchExtrudedFlare 
Axle 
Hinge 
BallJoint 
UniversalJoint 
TelescopicJoint 
DampedHingeSpring 
DampedAxleSpring 
DampedSpring 
WheelRigNoSteering 
WheelRigWithSteering 
PlateTriangle 
PlateCircle 
PlateQuarterCircle 
PlateRWedge 
PlateRTetrahedron 
Cone 
ConeSegment 
DoubleSliced 
HalfDoubleSliced 
EighthPyramid 
Hemisphere 
WideCylinder 
WideCylinderBend 
WideCylinderT 
WideCylinderCross 
WideCylinderCorner 
NarrowCylinder 
NarrowCylinderBend 
NarrowCylinderT 
NarrowCylinderCross 
DriverSeat 
PassengerSeat 
Engine 
NarrowCylinderCorner 
PlateWideCylinder 
PlateNarrowCylinder 
PlateNegativeTetrahedron 
PlateNegativeQuarterPyramid 
PlateRoundedNegativeTetrahedron 
PlateRoundedNegativeQuarterPyramid 
HeadlampSquare 
HeadlampCircle 
HeadlampWedge 
WideCylinderDiagonal 
NarrowCylinderDiagonal 
HeadlampTetrahedron 
CarWheelWideProfile 
CarWheel 

◆ BlockMaterial

Enumerator
Default 
SteelBodywork 
RigidSteel 
CarbonFiber 
Plastic 
Wood