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
↓ 4 callers
Method
read_java_float
(&mut self)
crates/mc173-server/src/io.rs:31
↓ 4 callers
Method
set
(&mut self, x: usize, y: usize, z: usize, value: f64)
crates/mc173-module/src/gen/noise.rs:45
↓ 4 callers
Method
set_block_self_notify
Same as the [`set_block`] method, but the previous block and new block are notified of that removal and addition. [`set_block`]: Self::set_block
crates/mc173-module/src/world.rs:551
↓ 4 callers
Method
set_chunk
Raw function to add a chunk to the world at the given coordinates. Note that the given chunk only contains block and light data, so no entity or block
crates/mc173-module/src/world.rs:397
↓ 4 callers
Function
set_face
(metadata: &mut u8, face: Face)
crates/mc173-module/src/block/bed.rs:20
↓ 3 callers
Method
brightness
(self)
crates/mc173-module/src/world.rs:1700
↓ 3 callers
Function
calc_weird_noise
(x_delta: f64, z_delta: f64, index: usize)
crates/mc173-module/src/gen/noise.rs:476
↓ 3 callers
Method
check_big_tree_branch
Check a big tree branch, this function returns the first position on the line that is not valid for growing a branch. If none is returned then the bra
crates/mc173-module/src/gen/tree.rs:288
↓ 3 callers
Function
check_tree
Check if a tree can grow based on some common properties.
crates/mc173-module/src/gen/tree.rs:565
↓ 3 callers
Method
contains
Return true if this bounding box contains the given point.
crates/mc173-server/src/geom.rs:130
↓ 3 callers
Method
fill
(&mut self, value: f64)
crates/mc173-module/src/gen/noise.rs:35
↓ 3 callers
Method
gen_2d
Generate a 2D noise cube at a given offset with the given scale and frequency.
crates/mc173-module/src/gen/noise.rs:238
↓ 3 callers
Method
get
(&self, index: usize)
crates/mc173-module/src/chunk.rs:398
↓ 3 callers
Method
get_active_power_from
Get the active power produced by a block's face.
crates/mc173-module/src/world/power.rs:40
↓ 3 callers
Method
get_block_light
(&self, pos: IVec3)
crates/mc173-module/src/chunk.rs:150
↓ 3 callers
Method
get_chunk
Get a reference to a chunk, if existing.
crates/mc173-server/src/world.rs:99
↓ 3 callers
Function
get_light_emission
Get the light emission of a block given its id. The resulting value is between 0 and 15 included, so it's basically a 4-bit unsigned integer.
crates/mc173-module/src/block/material.rs:213
↓ 3 callers
Function
get_material
Get material of a block.
crates/mc173-server/src/block/material.rs:7
↓ 3 callers
Method
get_power_from
Get the power produced by a block on a given face.
crates/mc173-module/src/world/power.rs:55
↓ 3 callers
Method
get_rand_mut
Get a mutable access to this world's random number generator.
crates/mc173-module/src/world.rs:285
↓ 3 callers
Method
get_sky_light
(&self, pos: IVec3)
crates/mc173-module/src/chunk.rs:164
↓ 3 callers
Method
intersects
Return true if this bounding box intersects with the given one.
crates/mc173-module/src/geom.rs:107
↓ 3 callers
Function
is_active
(metadata: u8)
crates/mc173-module/src/block/lever.rs:41
↓ 3 callers
Method
is_linkable_from
Return true if the block at given position can link to a redstone wire from its given face.
crates/mc173-module/src/world/power.rs:211
↓ 3 callers
Function
is_source
(metadata: u8)
crates/mc173-module/src/block/fluid.rs:6
↓ 3 callers
Method
is_y
(self)
crates/mc173-module/src/geom.rs:369
↓ 3 callers
Method
iter_blocks_in
(&'a self, min: IVec3, max: IVec3, cache: &'a mut ChunkCache)
crates/mc173-module/src/world.rs:988
↓ 3 callers
Method
mc_sin
(self)
crates/mc173-module/src/gen/math.rs:50
↓ 3 callers
Method
mc_sin_cos
(self)
crates/mc173-module/src/gen/math.rs:39
↓ 3 callers
Method
next_double_vec
Get the next pseudo-random double-precision float vector, x, y and z. This is not part of the standard Java class.
crates/mc173-module/src/rand.rs:172
↓ 3 callers
Method
next_gaussian
Get the next pseudo-random double-precision Gaussian random number.
crates/mc173-module/src/rand.rs:143
↓ 3 callers
Method
notify_flower
Notification of standard flower subclasses.
crates/mc173-module/src/world/notify.rs:149
↓ 3 callers
Method
recompute_height
Recompute the height column after the modification of the given block position. The height is recomputed and the skylight is also recomputed. This fu
crates/mc173-module/src/chunk.rs:238
↓ 3 callers
Method
remove
(&mut self, face: Face)
crates/mc173-server/src/geom.rs:511
↓ 3 callers
Method
reset
Reset the current tick index.
crates/mc173-module/src/world.rs:2185
↓ 3 callers
Method
rotate_right
(self)
crates/mc173-module/src/geom.rs:411
↓ 3 callers
Method
send_full
(&self, server: &Server, connection_id: u64)
crates/mc173-server/src/chunk.rs:110
↓ 3 callers
Function
set_open
(metadata: &mut u8, open: bool)
crates/mc173-module/src/block/door.rs:38
↓ 3 callers
Method
set_sky_light
(&mut self, pos: IVec3, light: u8)
crates/mc173-module/src/chunk.rs:171
↓ 3 callers
Method
sub
(self, rhs: DVec3)
crates/mc173-module/src/geom.rs:277
↓ 2 callers
Function
calc_2d_index
(pos: IVec3)
crates/mc173-server/src/chunk.rs:36
↓ 2 callers
Method
calc_biome
(&self, temperature: f64, humidity: f64, biome: f64)
crates/mc173-module/src/gen/overworld.rs:155
↓ 2 callers
Function
calc_chunk_pos_unchecked
(pos: IVec3)
crates/mc173-server/src/chunk.rs:56
↓ 2 callers
Function
calc_entity_chunk_pos
(pos: DVec3)
crates/mc173-module/src/chunk.rs:67
↓ 2 callers
Method
check
Check if this shaped recipe can be crafted with the given inventory of the given size and items.
crates/mc173-module/src/craft.rs:419
↓ 2 callers
Method
check
Check if this shaped recipe can be crafted with the given inventory of the given size and items.
crates/mc173-server/src/craft.rs:419
↓ 2 callers
Method
contains_x
(&self)
crates/mc173-module/src/geom.rs:511
↓ 2 callers
Method
contains_z
(&self)
crates/mc173-module/src/geom.rs:523
↓ 2 callers
Function
fast_entity
Return true if fast entity tracking is enabled on the server. To enable this feature, set `MC173_FAST_ENTITY=1`.
crates/module/src/config.rs:11
↓ 2 callers
Method
generate_node
Generate a cave node with the given properties.
crates/mc173-module/src/gen/cave.rs:93
↓ 2 callers
Function
get_actual_face
(metadata: u8)
crates/mc173-module/src/block/door.rs:57
↓ 2 callers
Method
get_biome
Get a single biome at given position.
crates/mc173-module/src/gen/overworld.rs:171
↓ 2 callers
Method
get_block
(&self, pos: IVec3)
crates/mc173-module/src/chunk.rs:133
↓ 2 callers
Function
get_break_hardness
Get the break hardness of a block, the block hardness is a value that defines the time a player need to hit a block before breaking. When the player's
crates/mc173-module/src/block/material.rs:243
↓ 2 callers
Function
get_distance
(metadata: u8)
crates/mc173-module/src/block/fluid.rs:20
↓ 2 callers
Method
get_height
Get saved height of a chunk column, Y component is ignored in the position.
crates/mc173-module/src/world.rs:580
↓ 2 callers
Function
handle_break_block
(entity_id: u32, packet: StdbBreakBlockPacket)
crates/mc173-server/src/autogen/handle_break_block_reducer.rs:27
↓ 2 callers
Method
handle_client_close
Internal function to actually close and forget a client (if not already the case). This function returns true if the thread should continue to run.
crates/mc173-server/src/net.rs:398
↓ 2 callers
Function
handle_look
(entity_id: u32, packet: StdbLookPacket)
crates/mc173-server/src/autogen/handle_look_reducer.rs:27
↓ 2 callers
Function
handle_position
(entity_id: u32, packet: StdbPositionPacket)
crates/mc173-server/src/autogen/handle_position_reducer.rs:27
↓ 2 callers
Function
handle_position_look
(entity_id: u32, packet: StdbPositionLookPacket)
crates/mc173-server/src/autogen/handle_position_look_reducer.rs:27
↓ 2 callers
Method
inflate
Expand this bounding box in all direction by the given delta.
crates/mc173-module/src/geom.rs:66
↓ 2 callers
Function
initial_scramble
(seed: i64)
crates/mc173-module/src/rand.rs:19
↓ 2 callers
Function
is_base_extended
(metadata: u8)
crates/mc173-server/src/block/piston.rs:29
↓ 2 callers
Method
is_block_replaceable
Return true if the block at given position can be replaced.
crates/mc173-module/src/world/material.rs:20
↓ 2 callers
Function
is_cube
Return true if a block is a full cube.
crates/mc173-server/src/block/material.rs:110
↓ 2 callers
Function
is_redstone_block
(id: u8)
crates/mc173-module/src/world/notify.rs:556
↓ 2 callers
Method
is_solid
(self)
crates/mc173-server/src/block/material.rs:482
↓ 2 callers
Function
is_upper
(metadata: u8)
crates/mc173-module/src/block/door.rs:45
↓ 2 callers
Method
iter_block_colliding_boxes
Get the colliding boxes for a block, the colliding box will be offset to the block's position as needed. Not to confuse with overlay boxes, which are
crates/mc173-module/src/world/bound.rs:28
↓ 2 callers
Function
mc_cos
(x: f32)
crates/mc173-module/src/gen/math.rs:21
↓ 2 callers
Function
mc_sin
(x: f32)
crates/mc173-module/src/gen/math.rs:16
↓ 2 callers
Function
mc_sin_table
(index: u16)
crates/mc173-module/src/gen/math.rs:11
↓ 2 callers
Function
new_invalid_packet_err
Return an invalid data io error with specific message.
crates/mc173-server/src/proto.rs:1297
↓ 2 callers
Function
new_io_abort_error
(message: &'static str)
crates/mc173-server/src/net.rs:531
↓ 2 callers
Method
next
(&mut self)
crates/mc173-module/src/inventory.rs:184
↓ 2 callers
Method
next
(&mut self)
crates/mc173-module/src/world/bound.rs:347
↓ 2 callers
Method
notify_fluid
Notification of a moving fluid block.
crates/mc173-module/src/world/notify.rs:120
↓ 2 callers
Method
place_big_tree_branch
Place a branch from a position to another one.
crates/mc173-module/src/gen/tree.rs:279
↓ 2 callers
Method
poll
Poll events from this packet server. If an I/O error is returned, the error is critical and the
crates/mc173-server/src/net.rs:102
↓ 2 callers
Method
pop_light_update_inner
Pops a light update from a world without updating the StdbWorld row
crates/mc173-module/src/world.rs:231
↓ 2 callers
Method
push
(&mut self, value: T)
crates/mc173-module/src/world.rs:2104
↓ 2 callers
Function
read_item_stack
(read: &mut impl Read)
crates/mc173-server/src/proto.rs:1301
↓ 2 callers
Method
recipe
If a crafting recipe is currently selected, return the result item.
crates/mc173-server/src/craft.rs:66
↓ 2 callers
Method
remove
(&mut self, face: Face)
crates/mc173-module/src/geom.rs:499
↓ 2 callers
Method
rotate_left
(self)
crates/mc173-module/src/geom.rs:423
↓ 2 callers
Method
run
(mut self)
crates/mc173-server/src/net.rs:238
↓ 2 callers
Method
schedule_light_update
Schedule a light update to be processed in a future tick. See [`tick_light`](Self::tick_light).
crates/mc173-module/src/world.rs:617
↓ 2 callers
Method
send_disconnect
Send disconnect (a.k.a. kick) to a client.
crates/mc173-server/src/server.rs:313
↓ 2 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/module/src/world.rs:627
↓ 2 callers
Method
set_max_stack_size
(mut self, max_stack_size: u16)
crates/mc173-module/src/item/mod.rs:190
↓ 2 callers
Method
set_max_stack_size
(mut self, max_stack_size: u16)
crates/mc173-server/src/item/mod.rs:190
↓ 2 callers
Method
set_seed
(&mut self, seed: i64)
crates/mc173-module/src/rand.rs:76
↓ 2 callers
Function
set_upper
(metadata: &mut u8, upper: bool)
crates/mc173-module/src/block/door.rs:50
↓ 2 callers
Method
set_weather
Set the current weather in this world. If the weather has changed an event will be pushed into the events queue.
crates/mc173-module/src/world.rs:296
↓ 2 callers
Method
tick
Tick the world, this ticks all entities. TODO: Guard this from being called recursively from tick functions.
crates/mc173-module/src/world.rs:1110
↓ 2 callers
Function
tick_inner
(cache: &mut ChunkCache)
crates/module/src/lib.rs:287
↓ 2 callers
Function
update_bounding_box_from_pos
This function recompute the current bounding box from the position and the last size that was used to create it.
crates/mc173-module/src/entity/common.rs:117
↓ 2 callers
Method
use_door_stack
Place a door item at given position.
crates/mc173-module/src/world/use.rs:126
↓ 2 callers
Function
wrap
(value: f64)
crates/mc173-module/src/gen/noise.rs:470
← previous
next →
101–200 of 985, ranked by callers