Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/clockworklabs/spacetimedb-minecraft
/ functions
Functions
985 in github.com/clockworklabs/spacetimedb-minecraft
⨍
Functions
985
◇
Types & classes
405
↓ 122 callers
Method
next_int_bounded
(&mut self, bound: i32)
crates/mc173-module/src/rand.rs:100
↓ 73 callers
Method
write_java_int
(&mut self, i: i32)
crates/mc173-server/src/io.rs:95
↓ 55 callers
Method
write_java_byte
(&mut self, b: i8)
crates/mc173-server/src/io.rs:85
↓ 53 callers
Method
get_block
Get block and metadata at given position in the world, if the chunk is not loaded, none is returned.
crates/mc173-module/src/world.rs:569
↓ 44 callers
Method
delta
(self)
crates/mc173-module/src/geom.rs:435
↓ 39 callers
Method
set_block
Set block and metadata at given position in the world, if the chunk is not loaded, none is returned, but if it is existing the previous block and meta
crates/mc173-module/src/world.rs:473
↓ 34 callers
Method
write_java_short
(&mut self, s: i16)
crates/mc173-server/src/io.rs:90
↓ 30 callers
Method
extrude
(self, inset: f64, depth: f64)
crates/mc173-module/src/geom.rs:449
↓ 25 callers
Method
generate
Generate all caves in the given chunk.
crates/mc173-module/src/gen/cave.rs:27
↓ 25 callers
Method
get
(&self, x: usize, y: usize, z: usize)
crates/mc173-module/src/gen/noise.rs:40
↓ 22 callers
Method
is_block_opaque_cube
Return true if the block at position is opaque. FIXME: A lot of calls to this function should instead be for "normal_cube". This is not exactly the s
crates/mc173-module/src/world/material.rs:32
↓ 22 callers
Method
len
(&self)
crates/mc173-module/src/world.rs:2250
↓ 22 callers
Method
send
(&self, client: NetworkClient, packet: O)
crates/mc173-server/src/net.rs:127
↓ 21 callers
Method
max
(self)
crates/mc173-module/src/world.rs:1688
↓ 19 callers
Function
grad3
(value: u16, x: f64, y: f64, z: f64)
crates/mc173-module/src/gen/noise.rs:433
↓ 19 callers
Method
next_float
Get the next pseudo-random single-precision float.
crates/mc173-module/src/rand.rs:131
↓ 18 callers
Method
len
(&self)
crates/mc173-server/src/geom.rs:494
↓ 17 callers
Method
iter
(&self)
crates/mc173-module/src/world.rs:2271
↓ 17 callers
Function
lerp
(factor: f64, from: f64, to: f64)
crates/mc173-module/src/gen/noise.rs:428
↓ 16 callers
Function
get_face
(metadata: u8)
crates/mc173-module/src/block/bed.rs:8
↓ 16 callers
Method
insert
(&mut self, face: Face)
crates/mc173-module/src/geom.rs:492
↓ 16 callers
Method
opposite
(self)
crates/mc173-module/src/geom.rs:398
↓ 16 callers
Method
push
(&mut self, value: f32, factor: f32)
crates/mc173-module/src/util.rs:20
↓ 16 callers
Method
set_block_notify
Same as the [`set_block_self_notify`] method, but additionally the blocks around are notified of that neighbor change. [`set_block_self_notify`]: Sel
crates/mc173-module/src/world.rs:561
↓ 15 callers
Function
get_material
Get material of a block.
crates/mc173-module/src/block/material.rs:7
↓ 14 callers
Method
is_solid
(self)
crates/mc173-module/src/block/material.rs:426
↓ 14 callers
Method
read_java_byte
(&mut self)
crates/mc173-server/src/io.rs:11
↓ 13 callers
Method
as_dvec3
(&self)
crates/mc173-module/src/dvec3.rs:13
↓ 13 callers
Method
is_empty
(&self)
crates/mc173-module/src/geom.rs:482
↓ 12 callers
Function
calc_3d_index
(pos: IVec3)
crates/mc173-module/src/chunk.rs:30
↓ 12 callers
Method
get_chunk
Get a reference to a chunk, if existing.
crates/mc173-module/src/world.rs:429
↓ 11 callers
Method
get
(&self, face: Face)
crates/mc173-server/src/geom.rs:636
↓ 11 callers
Method
is_empty
(&self)
crates/mc173-server/src/geom.rs:489
↓ 11 callers
Method
read_java_int
(&mut self)
crates/mc173-server/src/io.rs:21
↓ 11 callers
Method
write_java_double
(&mut self, d: f64)
crates/mc173-server/src/io.rs:110
↓ 10 callers
Method
is_block_air
(&self, pos: IVec3, cache: &mut ChunkCache)
crates/mc173-module/src/world/material.rs:51
↓ 10 callers
Method
next
(&mut self, bits: u8)
crates/mc173-module/src/rand.rs:90
↓ 10 callers
Method
next_double
Get the next pseudo-random double-precision float.
crates/mc173-module/src/rand.rs:136
↓ 9 callers
Method
break_block
Break a block naturally and loot its items. This returns true if successful, false if the chunk/pos was not valid. It also notifies blocks around, thi
crates/mc173-module/src/world/break.rs:18
↓ 9 callers
Method
get_block_material
Get the block material at given position, defaults to air if no chunk.
crates/mc173-module/src/world/material.rs:15
↓ 9 callers
Method
is_block
(&self, pos: IVec3, id: u8, cache: &mut ChunkCache)
crates/mc173-module/src/world/material.rs:61
↓ 8 callers
Method
gen_weird_2d
Weird noise generation (a handcrafted noise generator used by Notchian server that uses the same type of permutations table and offset as the perlin n
crates/mc173-module/src/gen/noise.rs:275
↓ 8 callers
Method
place_faced
Generic function to place a block that has a basic facing function.
crates/mc173-module/src/world/place.rs:185
↓ 8 callers
Method
read_java_boolean
(&mut self)
crates/mc173-server/src/io.rs:41
↓ 8 callers
Method
read_java_double
(&mut self)
crates/mc173-server/src/io.rs:36
↓ 8 callers
Method
read_java_short
(&mut self)
crates/mc173-server/src/io.rs:16
↓ 8 callers
Method
read_java_string16
(&mut self, max_len: usize)
crates/mc173-server/src/io.rs:45
↓ 8 callers
Method
write_java_string16
(&mut self, s: &str)
crates/mc173-server/src/io.rs:119
↓ 7 callers
Method
add
(&mut self, x: usize, y: usize, z: usize, value: f64)
crates/mc173-module/src/gen/noise.rs:50
↓ 7 callers
Method
get_light
Get light level at the given position, in range 0..16.
crates/mc173-module/src/world.rs:591
↓ 7 callers
Method
is_empty
Return true if this item stack is air, which is a special case where the item stack represent an empty slot.
crates/mc173-module/src/item/mod.rs:248
↓ 7 callers
Function
is_opaque_cube
Return true if a block is a full opaque cube.
crates/mc173-module/src/block/material.rs:165
↓ 7 callers
Method
write_java_boolean
(&mut self, b: bool)
crates/mc173-server/src/io.rs:115
↓ 6 callers
Function
calc_3d_index
(pos: IVec3)
crates/mc173-server/src/chunk.rs:25
↓ 6 callers
Function
calc_chunk_pos
(pos: IVec3)
crates/mc173-module/src/chunk.rs:50
↓ 6 callers
Method
get
(&self, index: usize)
crates/mc173-module/src/world.rs:2261
↓ 6 callers
Method
get_mut
(&mut self, index: usize)
crates/mc173-module/src/world.rs:2266
↓ 6 callers
Method
handle_position_look_inner
(&self, pos: Option<StdbDVec3>, look: Option<StdbVec2>, on_ground: bool)
crates/module/src/player.rs:290
↓ 6 callers
Method
id
(self)
crates/mc173-server/src/net.rs:159
↓ 6 callers
Function
is_open
(metadata: u8)
crates/mc173-module/src/block/door.rs:33
↓ 6 callers
Method
next_long
(&mut self)
crates/mc173-module/src/rand.rs:126
↓ 6 callers
Method
notify_block
Notify a block a the position, the notification origin block id is given.
crates/mc173-module/src/world/notify.rs:25
↓ 6 callers
Method
set
(&mut self, index: usize, value: u8)
crates/mc173-module/src/chunk.rs:408
↓ 6 callers
Method
write_java_float
(&mut self, f: f32)
crates/mc173-server/src/io.rs:105
↓ 5 callers
Method
advance
Go to the next entity to tick.
crates/mc173-module/src/world.rs:2215
↓ 5 callers
Method
apply
(&self)
crates/mc173-module/src/chunk_cache.rs:34
↓ 5 callers
Method
as_dvec3
(self)
crates/mc173-server/src/convert/dvec3.rs:6
↓ 5 callers
Function
calc_chunk_pos_unchecked
(pos: IVec3)
crates/mc173-module/src/chunk.rs:61
↓ 5 callers
Function
calc_pos
(mut pos: f64)
crates/mc173-module/src/gen/noise.rs:449
↓ 5 callers
Method
can_place_block
This function checks if the given block id can be placed at a particular position in the world, the given face indicates toward which face this block
crates/mc173-module/src/world/place.rs:19
↓ 5 callers
Method
contains
Return true if this bounding box contains the given point.
crates/mc173-module/src/geom.rs:129
↓ 5 callers
Function
default
()
crates/mc173-module/src/util.rs:6
↓ 5 callers
Method
gen_3d
Generate a 3D noise cube at a given offset with the given scale and frequency.
crates/mc173-module/src/gen/noise.rs:181
↓ 5 callers
Function
get_actual_distance
(metadata: u8)
crates/mc173-module/src/block/fluid.rs:47
↓ 5 callers
Function
get_light_opacity
Get the light opacity of a block given its id.
crates/mc173-module/src/block/material.rs:199
↓ 5 callers
Method
has_passive_power_from
(&mut self, pos: IVec3, face: Face, cache: &mut ChunkCache)
crates/mc173-module/src/world/power.rs:35
↓ 5 callers
Method
insert
(&mut self, face: Face)
crates/mc173-server/src/geom.rs:504
↓ 5 callers
Method
kind
Get the kind of entity from this instance.
crates/mc173-module/src/entity/mod.rs:567
↓ 5 callers
Function
new_invalid_data_err
Return an invalid data io error with specific message.
crates/mc173-module/src/io.rs:154
↓ 5 callers
Function
new_invalid_data_err
Return an invalid data io error with specific message.
crates/mc173-server/src/io.rs:154
↓ 5 callers
Method
next_choice
(&mut self, items: &[T])
crates/mc173-module/src/rand.rs:194
↓ 5 callers
Method
use_block_stack
Place a block toward the given face. This is used for single blocks, multi blocks are handled apart by other functions that do not rely on the block p
crates/mc173-module/src/world/use.rs:80
↓ 4 callers
Function
calc_2d_index
(pos: IVec3)
crates/mc173-module/src/chunk.rs:41
↓ 4 callers
Function
calc_chunk_pos_unchecked
(pos: IVec3)
crates/mc173-server/src/world.rs:50
↓ 4 callers
Function
calc_eye_pos
Calculate the eye position of the given entity.
crates/mc173-module/src/entity/common.rs:39
↓ 4 callers
Method
check_clearance
Check clearance of the given position, depending on the current entity size.
crates/mc173-module/src/path.rs:85
↓ 4 callers
Method
clear
(&mut self)
crates/mc173-module/src/geom.rs:487
↓ 4 callers
Method
ensure_point
(&mut self, pos: IVec3)
crates/mc173-module/src/path.rs:69
↓ 4 callers
Method
find_safe_point
Find a safe point to path find to in above or below the given position.
crates/mc173-module/src/path.rs:114
↓ 4 callers
Function
from_id
Get an item from its numeric id.
crates/mc173-module/src/item/mod.rs:142
↓ 4 callers
Method
is_block_solid
Return true if the block at position is material solid.
crates/mc173-module/src/world/material.rs:41
↓ 4 callers
Function
is_fluid_proof
Return true if the given block can block fluid.
crates/mc173-module/src/block/material.rs:186
↓ 4 callers
Method
iter_mut
(&mut self)
crates/mc173-module/src/world.rs:2276
↓ 4 callers
Method
max
(self)
crates/mc173-server/src/world.rs:76
↓ 4 callers
Function
modify_look
(look: Vec2)
crates/mc173-server/src/main.rs:257
↓ 4 callers
Function
modify_position
(pos: DVec3)
crates/mc173-server/src/main.rs:248
↓ 4 callers
Method
offset
Offset this bounding box' coordinates by the given delta.
crates/mc173-module/src/geom.rs:74
↓ 4 callers
Method
offset
Offset this bounding box' coordinates by the given delta.
crates/mc173-server/src/geom.rs:75
↓ 4 callers
Method
push
Add an item to the inventory. The given item stack is modified according to the amount of items actually added to the inventory, its size will be set
crates/mc173-module/src/inventory.rs:72
↓ 4 callers
Method
read
(read: &mut impl Read)
crates/mc173-server/src/proto.rs:789
next →
1–100 of 985, ranked by callers