public GlobalBlockPalette(IBlockRegistry blockRegistry) { _blockRegistry = blockRegistry; BitsPerBlock = blockRegistry.BitsPerBlock; }
public static void Register(IBlockRegistry registry) { registry.Register(Minecraft.Blocks.Air, BlockProperties.NoProperties, NoValues); registry.Register(Minecraft.Blocks.Stone, BlockProperties.NoProperties, NoValues); registry.Register(Minecraft.Blocks.Granite, BlockProperties.NoProperties, NoValues); }
public WorldManager(IBlockRegistry blockRegistry) { BlockRegistry = blockRegistry; _globalPalette = new GlobalBlockPalette(blockRegistry); }