Beispiel #1
0
        public override void Start(ICoreAPI api)
        {
            this.api = api;
            base.Start(api);

            api.RegisterBlockClass("BlockBreadboard", typeof(BlockCircuitBoard));
            api.RegisterBlockClass("BlockSignalConnection", typeof(BlockConnection));
            api.RegisterBlockClass("BlockSignalSource", typeof(BlockSource));
            api.RegisterBlockClass("BlockSwitch", typeof(BlockSwitch));



            api.RegisterBlockEntityClass("BlockEntityLightBulb", typeof(BlockEntityLightBulb));

            api.RegisterBlockBehaviorClass("BlockBehaviorCoverWithDirection", typeof(BlockBehaviorCoverWithDirection));

            api.RegisterBlockEntityBehaviorClass("BEBehaviorCircuitHolder", typeof(BEBehaviorCircuitHolder));
            api.RegisterBlockEntityBehaviorClass("BEBehaviorSignalConnector", typeof(BEBehaviorSignalNodeProvider));

            api.RegisterBlockEntityBehaviorClass("BEBehaviorSignalSwitch", typeof(BEBehaviorSignalSwitch));

            RegisterCircuitComponentClass("valve", typeof(CircuitComponentValve));
            RegisterCircuitComponentClass("source", typeof(CircuitComponentSource));
            RegisterCircuitComponentClass("resistor", typeof(CircuitComponentResistor));
        }
        public override void Start(ICoreAPI api)
        {
            base.Start(api);

            api.RegisterEntityBehaviorClass("fixtypedcontainer", typeof(FixTypedContainer));
            api.RegisterBlockEntityBehaviorClass("BEFixTypedChest", typeof(BEFixTypedChest));
        }
        public override void Start(ICoreAPI api)
        {
            base.Start(api);

            api.RegisterBlockClass("BlockTFRotaryGenerator", typeof(BlockTFRotaryGenerator));
            api.RegisterBlockClass("BlockWaterwheelRotor", typeof(BlockWaterwheelRotor));
            api.RegisterBlockClass("BlockEnergyDuct", typeof(BlockEnergyDuct));
            api.RegisterBlockClass("BlockFurnace", typeof(BlockFurnace));
            api.RegisterBlockClass("BlockMPMultiblockBase", typeof(BlockMPMultiblockBase));
            api.RegisterBlockClass("BlockSideconfigInteractions", typeof(BlockSideconfigInteractions));
            api.RegisterBlockClass("BlockTFRelay", typeof(BlockTFRelay));
            api.RegisterBlockClass("BlockTFEngine", typeof(BlockTFEngine));
            api.RegisterBlockClass("BlockTFForge", typeof(BlockTFForge));
            api.RegisterBlockClass("BlockCharger", typeof(BlockTFCharger));
            api.RegisterBlockClass("BlockConnector", typeof(BlockConnector));
            api.RegisterBlockClass("BlockTFCapacitor", typeof(BlockTFCapacitor));

            api.RegisterBlockEntityClass("TFCapacitor", typeof(TFCapacitor));
            api.RegisterBlockEntityClass("TFRotaryGenerator", typeof(TFRotaryGenerator));
            api.RegisterBlockEntityClass("BlockEntityEnergyDuct", typeof(BlockEntityEnergyDuct));
            api.RegisterBlockEntityClass("BlockEntityFurnace", typeof(BlockEntityFurnace));
            api.RegisterBlockEntityClass("BEMPMultiblockBase", typeof(BEMPMultiblockBase));
            api.RegisterBlockEntityClass("BETFRelay", typeof(BETFRelay));
            api.RegisterBlockEntityClass("BlockEntityTFEngine", typeof(BlockEntityTFEngine));
            api.RegisterBlockEntityClass("BlockEntityTFForge", typeof(BlockEntityTFForge));
            api.RegisterBlockEntityClass("BlockEntityCharger", typeof(BlockEntityTFCharger));
            api.RegisterBlockEntityClass("BlockEntityConnector", typeof(BlockEntityConnector));

            api.RegisterBlockEntityBehaviorClass("BEBehaviorTFRotaryGenerator", typeof(BEBehaviorTFRotaryGenerator));
            api.RegisterBlockEntityBehaviorClass("BEBehaviorWaterwheelRotor", typeof(BEBehaviorWaterwheelRotor));
            api.RegisterBlockEntityBehaviorClass("BEBehaviorTFEngine", typeof(BEBehaviorTFEngine));

            api.RegisterBlockBehaviorClass("OmniOrientable", typeof(BlockBehaviorOmniOrientable));

            api.RegisterItemClass("Wrench", typeof(Wrench));
            api.RegisterItemClass("TFChisel", typeof(TFChisel));
            api.RegisterItemClass("ItemWire", typeof(ItemWire));
        }
        public override void Start(ICoreAPI api)
        {
            base.Start(api);

            // Register base water wheel block and properties
            api.RegisterBlockClass("blockwaterwheel", typeof(BlockWaterWheel));
            api.RegisterBlockEntityClass("bewaterwheel", typeof(BEWaterWheel));
            api.RegisterBlockEntityBehaviorClass("bebehaviorwaterwheel", typeof(BEBehaviorWaterWheel));

            // Shouldn't use fake blocks until the game allows objects to be underwater and not mess with water flow.
            // There may be a way to edit the base game to allow blocks to extend their collision and selection boxes beyond their origin

            // Register the 'empty' surrounding blocks
            //api.RegisterBlockClass("blockwaterwheelsegment", typeof(BlockWaterWheelSegment));
            //api.RegisterBlockEntityClass("bewaterwheelsegment", typeof(BEWaterWheelSegment));
        }
Beispiel #5
0
        private void RegisterDefaultBlockEntityBehaviors()
        {
            api.RegisterBlockEntityBehaviorClass("Animatable", typeof(BEBehaviorAnimatable));

            api.RegisterBlockEntityBehaviorClass("MPAxle", typeof(BEBehaviorMPAxle));
            api.RegisterBlockEntityBehaviorClass("MPToggle", typeof(BEBehaviorMPToggle));
            api.RegisterBlockEntityBehaviorClass("MPAngledGears", typeof(BEBehaviorMPAngledGears));
            api.RegisterBlockEntityBehaviorClass("MPConsumer", typeof(BEBehaviorMPConsumer));
            api.RegisterBlockEntityBehaviorClass("MPBrake", typeof(BEBehaviorMPBrake));
            api.RegisterBlockEntityBehaviorClass("MPTransmission", typeof(BEBehaviorMPTransmission));
            api.RegisterBlockEntityBehaviorClass("MPWindmillRotor", typeof(BEBehaviorWindmillRotor));
            api.RegisterBlockEntityBehaviorClass("MPCreativeRotor", typeof(BEBehaviorMPCreativeRotor));
            api.RegisterBlockEntityBehaviorClass("MPLargeGear3m", typeof(BEBehaviorMPLargeGear3m));
            api.RegisterBlockEntityBehaviorClass("MPArchimedesScrew", typeof(BEBehaviorMPArchimedesScrew));
            api.RegisterBlockEntityBehaviorClass("MPPulverizer", typeof(BEBehaviorMPPulverizer));

            api.RegisterBlockEntityBehaviorClass("Burning", typeof(BEBehaviorBurning));
            api.RegisterBlockEntityBehaviorClass("FirepitAmbient", typeof(BEBehaviorFirepitAmbient));
            api.RegisterBlockEntityBehaviorClass("Fruiting", typeof(BEBehaviorFruiting));
        }
Beispiel #6
0
 public override void Start(ICoreAPI api)
 {
     this.api = api;
     api.RegisterBlockClass("BlockCustomMesh", typeof(BlockCustomMesh));
     api.RegisterBlockEntityBehaviorClass("CustomMesh", typeof(BEBehaviorCustomMesh));
 }