private void Set(EntityModelRenderer renderer, string bone, bool value) { if (renderer.GetBone(bone, out var boneValue)) { boneValue.Rendered = value; } }
/// <inheritdoc /> public ChestBlockEntity(Block block, World level, PooledTexture2D texture) : base(level, block) { Width = 16; Height = 16; ModelRenderer = new EntityModelRenderer(new ChestModel(), texture); if (ModelRenderer.GetBone("head", out var head)) { HeadBone = head; } }