public override void Start(ICoreAPI api) { api.RegisterBlockClass("BlockTeleport", typeof(BlockTeleport)); api.RegisterBlockEntityClass("BETeleport", typeof(BlockEntityTeleport)); TreeAttribute.RegisterAttribute(Constants.ATTRIBUTES_ID + 1, typeof(BlockPosArrayAttribute)); Config.Current = api.LoadOrCreateConfig <Config>(ConstantsCore.ModId + ".json"); }
} // Interact ring public override void Start(ICoreAPI api) { Config.Current = api.LoadOrCreateConfig <Config>(ConstantsCore.ModId + ".json"); if (Config.Current.CreateWaypoint.Val == "auto") { Config.Current.CreateWaypoint.Val = api.ModLoader.IsModEnabled("streamdc") ? "none" : "always"; } api.RegisterEntityBehaviorClass("playercorpseondeath", typeof(EntityBehaviorPlayerCorpseOnDeath)); api.RegisterEntity("EntityPlayerCorpse", typeof(EntityPlayerCorpse)); }
public override void Start(ICoreAPI api) { Config.Current = api.LoadOrCreateConfig <Config>(Mod.Info.ModID + ".json"); api.World.Config.SetBool(Mod.Info.ModID + ":CorpseCompassEnabled", Config.Current.CorpseCompassEnabled.Value); api.RegisterEntityBehaviorClass("playercorpseondeath", typeof(EntityBehaviorPlayerCorpseOnDeath)); api.RegisterEntity("EntityPlayerCorpse", typeof(EntityPlayerCorpse)); api.RegisterItemClass("ItemCorpseCompass", typeof(ItemCorpseCompass)); }
public override void Start(ICoreAPI api) { this.api = api; Config.Current = api.LoadOrCreateConfig <Config>(ConstantsCore.ModId + ".json"); }
public override void StartPre(ICoreAPI api) { GraveModConfig.Current = api.LoadOrCreateConfig <GraveModConfig>("GraveModConfig.json"); }