コード例 #1
0
        public override void Initialize(ICoreAPI api)
        {
            base.Initialize(api);

            if (api is ICoreClientAPI)
            {
                labelrenderer = new ChestLabelRenderer(pos, api as ICoreClientAPI);
                labelrenderer.SetNewText(text, color);
            }
        }
コード例 #2
0
        public override void OnBlockRemoved()
        {
            base.OnBlockRemoved();

            if (labelrenderer != null)
            {
                labelrenderer.Unregister();
                labelrenderer = null;
            }
        }