public override void Initialize(ICoreAPI api) { base.Initialize(api); if (api is ICoreClientAPI) { labelrenderer = new ChestLabelRenderer(pos, api as ICoreClientAPI); labelrenderer.SetNewText(text, color); } }
public override void OnBlockRemoved() { base.OnBlockRemoved(); if (labelrenderer != null) { labelrenderer.Unregister(); labelrenderer = null; } }