-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBranchesModSystem.cs
More file actions
30 lines (25 loc) · 927 Bytes
/
BranchesModSystem.cs
File metadata and controls
30 lines (25 loc) · 927 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using Vintagestory.API.Client;
using Vintagestory.API.Common;
using Vintagestory.API.Config;
using Vintagestory.API.Server;
using Vintagestory.GameContent;
namespace Branches
{
public class BranchesModSystem : ModSystem
{
// Called on server and client
// Useful for registering block/entity classes on both sides
public override void Start(ICoreAPI api)
{
api.RegisterBlockClass(Mod.Info.ModID + ".blockbranchy", typeof(BlockBranchy));
}
public override void StartServerSide(ICoreServerAPI api)
{
api.Logger.Notification("Hello from template mod server side: " + Lang.Get("branches:hello"));
}
public override void StartClientSide(ICoreClientAPI api)
{
api.Logger.Notification("Hello from template mod client side: " + Lang.Get("branches:hello"));
}
}
}