public static void GenerateFlower(BaseDecorator Decorator, Random R, Chunk C, int FlowersPerChunk) { for (int I = 0; I < FlowersPerChunk; I++) { int X = C.CL.X + R.Next(16) + 8; byte Y = (byte)R.Next(128); int Z = C.CL.Z + R.Next(16) + 8; Decorator.Decorate(C, X, Y, Z); } }
public static void GenerateOre(BaseDecorator Decorator, Random R, Chunk C, int VeinsPerChunk, int MinY, int MaxY) { for (int I = 0; I < VeinsPerChunk; I++) { int X = R.Next(16); byte Y = (byte)R.Next(MinY, MaxY); int Z = R.Next(16); Decorator.Decorate(C, X, Y, Z); } }