コード例 #1
0
ファイル: ChunkColumn.cs プロジェクト: K4mey/Alex
 public bool AddBlockEntity(BlockCoordinates coordinates, BlockEntity entity)
 {
     entity.KnownPosition = coordinates;
     return(BlockEntities.TryAdd(coordinates, entity));
 }
コード例 #2
0
 public bool AddBlockEntity(BlockCoordinates coordinates, BlockEntity entity)
 {
     //entity.Block = GetBlockState(coordinates.X & 0x0f, coordinates.Y & 0xf, coordinates.Z & 0x0f).Block;
     return(BlockEntities.TryAdd(coordinates, entity));
 }
コード例 #3
0
 public bool AddBlockEntity(BlockCoordinates coordinates, BlockEntity entity)
 {
     entity.KnownPosition = coordinates;
     entity.Block         = World.GetBlockState(coordinates).Block;
     return(BlockEntities.TryAdd(coordinates, entity));
 }