public override void Initialize(ICoreAPI api, JsonObject properties) { if (api.Side.IsClient()) { return; } this.api = api; heatRange = properties["heatRange"].AsInt(12); heatTemp = properties["heatTemp"].AsFloat(0.5f); block.RegisterGameTickListener(HeatEntities, 10000); base.Initialize(api, properties); }
public void InitializeAnimatorServer(string cacheDictKey, Shape blockShape) { animator = GetAnimator(api, cacheDictKey, blockShape); be.RegisterGameTickListener(animTickServer, 20); }