Exemple #1
0
 public GlobalBlockPalette(IBlockRegistry blockRegistry)
 {
     _blockRegistry = blockRegistry;
     BitsPerBlock   = blockRegistry.BitsPerBlock;
 }
Exemple #2
0
 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);
 }
Exemple #3
0
 public WorldManager(IBlockRegistry blockRegistry)
 {
     BlockRegistry  = blockRegistry;
     _globalPalette = new GlobalBlockPalette(blockRegistry);
 }