Exemplo n.º 1
0
        public Chunk(WorldProvider world, BlockPos pos)
        {
            eventManager  = new ChunkLogicEventManager();
            blockChange   = new ChunkEventProvider <BlockChangeEvent>(eventManager);
            chunkGenerate = new ChunkEventProvider <ChunkGenerateEvent>(eventManager);

            this.world = world;
            position   = new BlockPos(pos);
            data       = new BlockData[4096]; // 16 * 16 * 16
        }
Exemplo n.º 2
0
 public ChunkEventProvider(ChunkEventManager manager) : base(manager)
 {
     _params = new object[] { this };
 }
Exemplo n.º 3
0
 public ChunkEventBucket(ChunkEventManager owner)
 {
     this.owner = owner;
 }
Exemplo n.º 4
0
 public ChunkEventProviderBase(ChunkEventManager manager)
 {
     this.manager = manager;
 }