Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/Badel2/slime_seed_finder
/ functions
Functions
765 in github.com/Badel2/slime_seed_finder
⨍
Functions
765
◇
Types & classes
124
↓ 121 callers
Method
next_int_n
(&mut self, n: i32)
src/mc_rng.rs:96
↓ 74 callers
Method
get_map_from_pmap
(&self, pmap: &Map)
src/biome_layers.rs:287
↓ 62 callers
Method
get_map
(&self, area: Area)
src/biome_layers.rs:277
↓ 60 callers
Method
parse
Parse mossy floor from human readable string ```ignore MMMCCAC?? MMCMCCM?? ``` M = Mossy cobblestone C = Normal cobblestone A = Air with no block un
src/population.rs:232
↓ 46 callers
Method
log
(&self, record: &Record)
slime_seed_finder_web/src/stdweb_logger.rs:82
↓ 46 callers
Method
set_chunk_seed
(&mut self, chunk_x: i64, chunk_z: i64)
src/mc_rng.rs:57
↓ 36 callers
Function
distance_points
(ax, ay, bx, by)
static/voronoi.js:742
↓ 35 callers
Method
get_seed
(&self)
src/java_rng.rs:57
↓ 32 callers
Method
area
(&self)
src/biome_layers.rs:190
↓ 32 callers
Method
next
(&mut self, bits: u8)
src/java_rng.rs:65
↓ 25 callers
Function
spawner_coordinates_to_chunk
Convert the block coordinates of a dungeon spawner to the coordinates of the chunk that generated that dungeon. chunk_x * 16 + random.nextInt(16) + 8
src/population.rs:663
↓ 23 callers
Method
get
Get value at real coordinate (x, z)
src/biome_layers.rs:195
↓ 23 callers
Function
is_oceanic
(id: i32)
src/biome_layers.rs:360
↓ 22 callers
Method
to_string
(&self)
slime_seed_finder_web/src/wasm_gui.rs:947
↓ 21 callers
Method
choose4
(&mut self, a: T, b: T, c: T, d: T)
src/mc_rng.rs:110
↓ 20 callers
Function
generate_up_to_layer
(version: MinecraftVersion, area: Area, seed: i64, num_layers: u32)
src/biome_layers.rs:5201
↓ 20 callers
Method
previous
The inverse of next()
src/java_rng.rs:171
↓ 20 callers
Method
set_seed
(&mut self, s: u64)
src/java_rng.rs:49
↓ 19 callers
Method
num_layers
Total number of biome layers
src/seed_info.rs:42
↓ 14 callers
Function
check_rng_dungeon
Helper: given a rng with dungeon seed, check if it actually generates the expected dungeon This is supposed to be the same algorithm as the one used i
src/population.rs:1270
↓ 14 callers
Function
mask
Return a mask which will keep the lower n bits ``` use slime_seed_finder::java_rng::mask; let fifteen = 0b1111; assert_eq!(fifteen & mask(0), 0b0000)
src/java_rng.rs:25
↓ 13 callers
Function
spawner_coordinates_to_next_int
Convert the block coordinates of a dungeon spawner to the number returned by the corresponding call to nextInt. chunk_x * 16 + random.nextInt(16) + 8
src/population.rs:675
↓ 13 callers
Function
stringify
(obj, options)
static/json-stringify-pretty-compact.js:26
↓ 12 callers
Method
next_double
(&mut self)
src/java_rng.rs:163
↓ 12 callers
Method
next_long
(&mut self)
src/java_rng.rs:151
↓ 12 callers
Method
push_str
(&mut self, idx: &str)
slime_seed_finder_web/src/wasm_gui.rs:935
↓ 11 callers
Function
draw_map_image
(map: &Map)
src/biome_layers.rs:4970
↓ 11 callers
Method
next_n_calls
(s * A) + C ((s * A) + C) * A + C s*A*A + C*A + C s*A*A*A + C*A*A + C*A + C Equivalent to n calls to next
src/java_rng.rs:85
↓ 11 callers
Function
rng_for_dungeon_coord_next_ints
Wrapper function because the API changed and I don't want to rewrite the tests
src/population.rs:1552
↓ 11 callers
Method
set
Set value at real coordinate (x, z)
src/biome_layers.rs:199
↓ 11 callers
Method
unwrap_or
(self, unknown_biome_id: i32)
src/biome_layers.rs:219
↓ 10 callers
Function
calculate_slime_data
This is the slime chunk algorithm See discussion about optimizations in the test section: constant_z()
src/slime.rs:146
↓ 10 callers
Method
next_int
(&mut self)
src/java_rng.rs:108
↓ 10 callers
Function
reduce_id
Helper function to classify an input into [0, 1, 2, 3] Used by MapRiver
src/biome_layers.rs:2705
↓ 10 callers
Function
reverse_map_zoom
Actually, this works 100% of the time
src/biome_layers.rs:4152
↓ 10 callers
Function
world_seed_to_chunk_population_seed
Given a world seed, calculate the chunk population seed for the given chunk coordinates. Works for versions <= Minecraft Java 1.12. For 1.13 and above
src/population.rs:765
↓ 9 callers
Function
mask_up_to_bit
(i: u8)
src/mc_rng.rs:19
↓ 8 callers
Function
distance_point_hline
(px, py, liney)
static/voronoi.js:738
↓ 8 callers
Function
distance_point_vline
(px, py, linex)
static/voronoi.js:734
↓ 8 callers
Function
indexed_lerp
(idx: i32, d1: f64, d2: f64, d3: f64)
src/noise_generator.rs:98
↓ 8 callers
Method
into
(self)
src/seed_info.rs:406
↓ 8 callers
Function
map_with_river_at
(c: &[Point], area: Area)
src/biome_layers.rs:4753
↓ 8 callers
Function
preserve_area
Helper function to check that a layer generates the correct area
src/biome_layers.rs:6562
↓ 8 callers
Function
reverse_map_voronoi_zoom
Works 99.9 % of the time p = 0.9992 for each tile The probability of having at least one error in a 30x30 area is 50%
src/biome_layers.rs:4214
↓ 8 callers
Function
river_seed_finder_26_range
(river_coords_quarter_scale: &[Point4], range_lo: u32, range_hi: u32)
src/biome_layers.rs:4338
↓ 7 callers
Function
c_err
Error handling: instead of Result<(), Error> we use *mut c_char, which is null when the result is Ok, and it is a c string of the error message when t
slime_seed_finder_c/src/lib.rs:17
↓ 7 callers
Function
create_from_long
()
src/java_rng.rs:441
↓ 7 callers
Function
get
(options, name, defaultValue)
static/json-stringify-pretty-compact.js:120
↓ 7 callers
Function
get_category
(v: MinecraftVersion, id: i32)
src/biome_layers.rs:307
↓ 7 callers
Function
lerp
Linear interpolation between from and to. When part=0, return from and when part=1, return to.
src/noise_generator.rs:94
↓ 7 callers
Method
push_str
(&mut self, idx: &str)
slime_seed_finder_webnode/src/wasm_gui.rs:947
↓ 7 callers
Function
render
()
static/voronoi.js:269
↓ 7 callers
Function
similar_biome_seed
(seed: String)
slime_seed_finder_web/src/wasm_gui.rs:522
↓ 7 callers
Method
world_seed
(&self)
src/mc_rng.rs:67
↓ 6 callers
Function
biome_exists
(id: i32)
src/biome_layers.rs:334
↓ 6 callers
Method
choose2
(&mut self, a: T, b: T)
src/mc_rng.rs:103
↓ 6 callers
Method
contains
Returns true if (x, z) in inside this area
src/biome_layers.rs:89
↓ 6 callers
Function
draw_treasure_map_image
(map: &Map)
src/biome_layers.rs:5104
↓ 6 callers
Function
equal_or_plateau
(version: MinecraftVersion, id1: i32, id2: i32)
src/biome_layers.rs:2137
↓ 6 callers
Function
generate_image_up_to_layer
(version: MinecraftVersion, area: Area, seed: i64, layer: u32)
src/biome_layers.rs:5190
↓ 6 callers
Function
populate_alpha_1_2_6_check_dungeon
This is the same as populate_alpha_1_0_4 but with lakes before dungeons None: maybe true: probably yes false: probably no dungeon: spawner coordinates
src/population.rs:606
↓ 6 callers
Method
previous_n_calls
3 calls: * (s*(D*D) - (C*D*(D+1)) - C) * D * s*(D*D*D) - (C*D*(D+1))*D - C*D * s*(D*D*D) - (C*D*D*D + C*D*D + C*D) * s*(D*D*D) - (
src/java_rng.rs:211
↓ 6 callers
Function
slice_to_area
(mut m: Map, a: Area)
src/biome_layers.rs:4274
↓ 6 callers
Method
to_string
(&self)
slime_seed_finder_webnode/src/wasm_gui.rs:959
↓ 6 callers
Function
write_seeds_to_file
Create a new file and write all the found seeds to it If the file already exists, it gets overwritten
src/main.rs:1127
↓ 5 callers
Function
a
(t, i, r, a, h, e)
static/delaunator.min.js:249
↓ 5 callers
Function
all_equal
(m: &Map)
src/biome_layers.rs:4845
↓ 5 callers
Function
array_filled_with
(length, what)
static/fragment_map.js:26
↓ 5 callers
Function
array_filled_with
(length, what)
slime_seed_finder_webui/src/renderer/fragment_map.js:26
↓ 5 callers
Function
biome_to_color
(id: i32)
src/biome_layers.rs:392
↓ 5 callers
Function
chunk_population_seed_to_world_seed
Given 3 different (population_seed, chunk_x, chunk_z), find world_seed: ```ignore population_seed1 = (x1 * M + z1 * N) ^ world_seed population_seed2
src/population.rs:834
↓ 5 callers
Method
chunk_seed
(&self)
src/mc_rng.rs:70
↓ 5 callers
Function
deserialize
(deserializer: D)
src/seed_info.rs:513
↓ 5 callers
Function
drawMapToCanvas
(canvas, map, mapArea)
static/treasure.js:472
↓ 5 callers
Function
e
(t, i, r)
static/delaunator.min.js:264
↓ 5 callers
Method
filter
Returns the maximum `LevelFilter` that this logger instance is configured to output.
slime_seed_finder_web/src/stdweb_logger.rs:61
↓ 5 callers
Function
generate
(version: MinecraftVersion, a: Area, world_seed: i64)
src/biome_layers.rs:5196
↓ 5 callers
Function
generate_up_to_layer_1_15
(a: Area, world_seed: i64, layer: u32, version: MinecraftVersion)
src/biome_layers.rs:6021
↓ 5 callers
Function
read_seed_from_level_dat_zip
(input_zip: &Path, minecraft_version: Option<MinecraftVersion>)
src/anvil.rs:520
↓ 5 callers
Function
render
()
static/map_smooth.js:188
↓ 5 callers
Function
river_seed_finder_range
River Seed Finder range_lo: 0 range_hi: 1 << 24 Even though this is a 26-bit bruteforce, we check 4 seeds at a time
src/biome_layers.rs:4468
↓ 5 callers
Function
rng_with_slime_data
(seed: u64, x: u64)
src/slime.rs:167
↓ 5 callers
Method
set_base_seed
(&mut self, base_seed: i64)
src/mc_rng.rs:42
↓ 5 callers
Function
set_pixels_at_margin
Set the border pixels to a particular value This is used to add 1-pixel padding to treasure maps, since ingame maps always have 128x128 resolution, bu
src/biome_layers.rs:3843
↓ 5 callers
Function
treasure_map_river_seed_finder
Treasure Map River Seed Finder range_lo: 0 range_hi: 1 << 24 Even though this is a 26-bit bruteforce, we check 4 seeds at a time
src/biome_layers.rs:4639
↓ 5 callers
Function
update_selection
()
static/treasure.js:329
↓ 4 callers
Method
add_chunk
Deserialize this chunk and add it to this dimension
src/fastanvil_ext.rs:68
↓ 4 callers
Function
calculate_treasure_data
(c: &Chunk)
src/structures.rs:21
↓ 4 callers
Function
checkBounds
* Determine position relative to bounds * @param {Boolean} restrict Whether to restrict target to bounds
static/impetus.js:400
↓ 4 callers
Function
checkBounds
* Determine position relative to bounds * @param {Boolean} restrict Whether to restrict target to bounds
slime_seed_finder_webui/src/renderer/impetus.js:400
↓ 4 callers
Function
cleanUpRuntimeEvents
* Removes all events set by this instance during runtime
static/impetus.js:194
↓ 4 callers
Function
cleanUpRuntimeEvents
* Removes all events set by this instance during runtime
slime_seed_finder_webui/src/renderer/impetus.js:194
↓ 4 callers
Function
constrain
(x, a, b)
static/voronoi.js:41
↓ 4 callers
Function
convertIntToHex2
(x)
static/treasure.js:495
↓ 4 callers
Function
count_rivers
(m: &Map)
src/biome_layers.rs:4720
↓ 4 callers
Function
count_rivers_and
The first map should have more rivers than the second one
src/biome_layers.rs:4725
↓ 4 callers
Function
drawTreasureMap
()
static/treasure.js:515
↓ 4 callers
Function
generate_image_treasure_map
Generate terrain with the same style as unexplored treasure maps.
src/biome_layers.rs:5122
↓ 4 callers
Function
generate_up_to_layer_1_7_extra
(a: Area, world_seed: i64, layer: u32)
src/biome_layers.rs:5378
↓ 4 callers
Function
getPassiveSupported
()
static/impetus.js:545
next →
1–100 of 765, ranked by callers