C# Class BiomePainter.RegionUtil

ファイルを表示 Open project: mblaine/BiomePainter Class Usage Examples

Public Methods

Method Description
AddorRemoveBiomesSelection ( RegionFile region, Bitmap b, Color selectionColor, byte biome, bool add ) : void
AddorRemoveBlocksSelection ( RegionFile region, Bitmap b, Color selectionColor, int blockIds, bool add ) : void
Fill ( RegionFile region, Bitmap selection, Color selectionColor, Object biome, long worldSeed ) : void
RenderChunkBoundaries ( Bitmap b ) : void
RenderRegionBiomes ( RegionFile region, Bitmap b, String toolTips, bool clip = true ) : void
RenderRegionChunkstobePopulated ( RegionFile region, Bitmap b, bool clip = true ) : void
RenderRegionTerrain ( RegionFile region, Bitmap b, bool clip = true ) : void
RenderSurroundingRegions ( RegionFile regions, Bitmap terrain, Bitmap biomes, String toolTips, Bitmap populate ) : void
Replace ( RegionFile region, Bitmap selection, Color selectionColor, byte biome1, Object biome2, long worldSeed ) : void
SelectChunks ( Bitmap b, Color selectionColor ) : void
SetChunkstobePopulated ( RegionFile region, Bitmap selection, Color selectionColor, byte value ) : void

Private Methods

Method Description
AddtoColor ( Color c, int diff ) : Color
Blend ( Color c1, Color c2 ) : Color
Fill ( RegionFile region, Bitmap selection, Color selectionColor, BiomeUtil util ) : void
Fill ( RegionFile region, Bitmap selection, Color selectionColor, byte biome ) : void
GetBiome ( Object input, long seed, byte &biomeId, BiomeUtil &biomeGen ) : void
GetBlock ( TAG_Compound sections, int x, int y, int z ) : byte
GetBlock ( TAG_Compound sections, int x, int y, int z, byte &id, byte &data ) : void
GetHeight ( TAG_Compound sections, int x, int z, int yStart = 255 ) : int
RegionUtil ( ) : System
RenderChunkBiomes ( Chunk c, Bitmap b, String toolTips, int offsetX, int offsetY ) : void
RenderChunkTerrain ( Object state ) : void
RenderChunktobePopulated ( Chunk c, Graphics g, Brush brush, int offsetX, int offsetY ) : void
RenderRegionBiomes ( RegionFile region, int chunkStartX, int chunkEndX, int chunkStartZ, int chunkEndZ, int offsetX, int offsetY, Bitmap biomes, String toolTips ) : void
RenderRegionChunkstobePopulated ( RegionFile region, int chunkStartX, int chunkEndX, int chunkStartZ, int chunkEndZ, int offsetX, int offsetY, Bitmap populate ) : void
RenderRegionTerrain ( RegionFile region, int chunkStartX, int chunkEndX, int chunkStartZ, int chunkEndZ, int offsetX, int offsetY, Bitmap map ) : void
RenderSurroundingRegion ( RegionFile region, int chunkStartX, int chunkEndX, int chunkStartZ, int chunkEndZ, int offsetX, int offsetY, Bitmap terrain, Bitmap biomes, String toolTips, Bitmap populate ) : void
Replace ( RegionFile region, Bitmap selection, Color selectionColor, byte search, BiomeUtil replace ) : void
Replace ( RegionFile region, Bitmap selection, Color selectionColor, byte search, byte replace ) : void

Method Details

AddorRemoveBiomesSelection() public static method

public static AddorRemoveBiomesSelection ( RegionFile region, Bitmap b, Color selectionColor, byte biome, bool add ) : void
region Minecraft.RegionFile
b System.Drawing.Bitmap
selectionColor Color
biome byte
add bool
return void

AddorRemoveBlocksSelection() public static method

public static AddorRemoveBlocksSelection ( RegionFile region, Bitmap b, Color selectionColor, int blockIds, bool add ) : void
region Minecraft.RegionFile
b System.Drawing.Bitmap
selectionColor Color
blockIds int
add bool
return void

Fill() public static method

public static Fill ( RegionFile region, Bitmap selection, Color selectionColor, Object biome, long worldSeed ) : void
region Minecraft.RegionFile
selection System.Drawing.Bitmap
selectionColor Color
biome Object
worldSeed long
return void

RenderChunkBoundaries() public static method

public static RenderChunkBoundaries ( Bitmap b ) : void
b System.Drawing.Bitmap
return void

RenderRegionBiomes() public static method

public static RenderRegionBiomes ( RegionFile region, Bitmap b, String toolTips, bool clip = true ) : void
region Minecraft.RegionFile
b System.Drawing.Bitmap
toolTips String
clip bool
return void

RenderRegionChunkstobePopulated() public static method

public static RenderRegionChunkstobePopulated ( RegionFile region, Bitmap b, bool clip = true ) : void
region Minecraft.RegionFile
b System.Drawing.Bitmap
clip bool
return void

RenderRegionTerrain() public static method

public static RenderRegionTerrain ( RegionFile region, Bitmap b, bool clip = true ) : void
region Minecraft.RegionFile
b System.Drawing.Bitmap
clip bool
return void

RenderSurroundingRegions() public static method

public static RenderSurroundingRegions ( RegionFile regions, Bitmap terrain, Bitmap biomes, String toolTips, Bitmap populate ) : void
regions Minecraft.RegionFile
terrain System.Drawing.Bitmap
biomes System.Drawing.Bitmap
toolTips String
populate System.Drawing.Bitmap
return void

Replace() public static method

public static Replace ( RegionFile region, Bitmap selection, Color selectionColor, byte biome1, Object biome2, long worldSeed ) : void
region Minecraft.RegionFile
selection System.Drawing.Bitmap
selectionColor Color
biome1 byte
biome2 Object
worldSeed long
return void

SelectChunks() public static method

public static SelectChunks ( Bitmap b, Color selectionColor ) : void
b System.Drawing.Bitmap
selectionColor Color
return void

SetChunkstobePopulated() public static method

public static SetChunkstobePopulated ( RegionFile region, Bitmap selection, Color selectionColor, byte value ) : void
region Minecraft.RegionFile
selection System.Drawing.Bitmap
selectionColor Color
value byte
return void