Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DarkZek/RustCraft
/ functions
Functions
594 in github.com/DarkZek/RustCraft
⨍
Functions
594
◇
Types & classes
288
↓ 110 callers
Method
get
(&self)
lib/rc_shared/src/atlas.rs:23
↓ 84 callers
Method
send
(&self, message: Protocol)
lib/rc_networking/src/bistream/wasm.rs:91
↓ 73 callers
Method
get
(&self, pos: Vector3<usize>)
client/src/systems/chunk/condensed_spacial_data.rs:47
↓ 56 callers
Method
get_mut
(&mut self, pos: Vector3<usize>)
client/src/systems/chunk/condensed_spacial_data.rs:53
↓ 55 callers
Method
spawn
(seed: u32, chunk_pos: Vector3<i32>, pos: Vector3<i32>, world: &mut RawChunkData)
server/src/game/generation/structures/tree.rs:15
↓ 39 callers
Method
len
(&self)
client/src/systems/chunk/lookup.rs:40
↓ 32 callers
Method
set
(&self, value: TextureAtlas)
lib/rc_shared/src/atlas.rs:27
↓ 31 callers
Method
draw_face
( &mut self, position: Vector3<f32>, face: &Face, color: LightingColor )
client/src/utils/mesh/draw_kit.rs:41
↓ 30 callers
Method
sub_index
(&self, index: &TextureAtlasIndex)
lib/rc_shared/src/atlas.rs:196
↓ 28 callers
Method
get_mut
(&mut self, position: [i32; 3])
lib/rc_shared/src/relative_chunk_map.rs:38
↓ 23 callers
Function
global_to_local_position
(vector: Vector3<i32>)
lib/rc_shared/src/helpers.rs:126
↓ 22 callers
Function
try_place_block
( affected_chunk_pos: ChunkPosition, world: &mut RawChunkData, pos: Vector3<i32>, block: u32,
server/src/game/generation/structures/mod.rs:48
↓ 20 callers
Method
load
( &'a self, reader: &'a mut Reader<'_>, _settings: &'a Self::Settings, _load_c
client/src/systems/asset/parsing/pack.rs:22
↓ 19 callers
Method
lerp
(self, b: Self, t: f32)
lib/rc_shared/src/helpers.rs:36
↓ 15 callers
Method
with_scale
(mut self, scale: f32)
server/src/game/generation/noise.rs:18
↓ 11 callers
Method
get_block_from_id
(&self, block_index: BlockId)
lib/rc_shared/src/block/mod.rs:64
↓ 11 callers
Method
try_recv
(&mut self)
lib/rc_networking/src/bistream/wasm.rs:80
↓ 10 callers
Method
sample_2d
Returns an index with the range 0-1
server/src/game/generation/noise.rs:24
↓ 9 callers
Method
height
(&self)
lib/rc_shared/src/atlas.rs:103
↓ 9 callers
Method
log
(&mut self, message: &str)
client/src/systems/ui/console/mod.rs:65
↓ 9 callers
Function
max
(x: f32, y: f32)
lib/rc_shared/src/aabb.rs:12
↓ 9 callers
Function
min
(x: f32, y: f32)
lib/rc_shared/src/aabb.rs:23
↓ 9 callers
Method
offset
Offset an Aabb by a given offset
lib/rc_shared/src/aabb.rs:43
↓ 9 callers
Function
to_bevy_vec3
(vector: Vector3<f32>)
lib/rc_shared/src/helpers.rs:120
↓ 8 callers
Method
apply_mesh
(mut self, mesh: &mut Mesh)
client/src/utils/mesh/draw_kit.rs:107
↓ 7 callers
Method
draw
( &self, pos: Vector3<f32>, visible_map: ViewableDirection, light_color: [Ligh
client/src/game/block.rs:18
↓ 7 callers
Function
from_bevy_vec3
(vector: Vec3)
lib/rc_shared/src/helpers.rs:115
↓ 7 callers
Method
with_wind_strength
(mut self)
client/src/utils/mesh/draw_kit.rs:36
↓ 6 callers
Method
add_flag
(&mut self, flag: ChunkFlagsBitMap)
client/src/systems/chunk/flags.rs:29
↓ 6 callers
Function
should_draw_betweens
( block_states: &BlockStates, world: &ChunkDataStorage, pos: Vector3<usize>, offset: Vector3<i
lib/rc_shared/src/viewable_direction.rs:192
↓ 5 callers
Function
add_vertex_extension
( layout: &MeshVertexBufferLayoutRef, descriptor: &mut RenderPipelineDescriptor, attribute: MeshVe
client/src/systems/asset/material/chunk_extension.rs:41
↓ 5 callers
Method
draw
(&self)
lib/rc_shared/src/block/mod.rs:162
↓ 5 callers
Method
flipped
(&self)
lib/rc_shared/src/atlas.rs:212
↓ 5 callers
Method
get_game_object
(&self, game_object_id: &GameObjectId)
server/src/game/world/data.rs:70
↓ 5 callers
Method
try_move
Returns the maximum movement allowed before collision with another `Aabb`
lib/rc_shared/src/aabb.rs:161
↓ 4 callers
Method
build
(&mut self)
client/src/systems/chunk/builder/thread/executor.rs:22
↓ 4 callers
Method
calculate_states
(&mut self)
lib/rc_shared/src/block/mod.rs:125
↓ 4 callers
Method
create_chunk
Creates a new chunk from data
client/src/systems/chunk/mod.rs:74
↓ 4 callers
Method
for_each
(&self, mut cb: F)
client/src/systems/chunk/nearby_chunk_map.rs:42
↓ 4 callers
Method
get_by_id
(&self, name: &str)
lib/rc_shared/src/item/mod.rs:53
↓ 4 callers
Method
get_position
(&self, world_position: Vector3<i32>)
client/src/systems/chunk/nearby_chunk_map.rs:128
↓ 4 callers
Function
global_f32_to_local_position
(vector: Vector3<f32>)
lib/rc_shared/src/helpers.rs:152
↓ 4 callers
Method
has_flag
(&self, flag: ChunkFlagsBitMap)
client/src/systems/chunk/flags.rs:24
↓ 4 callers
Function
recv_protocol
Reads a `Protocol` from some RecvStream
lib/rc_networking/src/bistream/mod.rs:69
↓ 4 callers
Function
send_protocol
Writes a `Protocol` to some RecvStream
lib/rc_networking/src/bistream/mod.rs:51
↓ 4 callers
Method
try_translate
Attempt to translate an Aabb by a delta, moving the maximum distance allowed before a collision Supports movement on only one axis at a time
lib/rc_shared/src/aabb.rs:189
↓ 4 callers
Function
world_to_index
(world_position: Vector3<i32>, index_center: Vector3<i32>)
client/src/systems/chunk/nearby_chunk_map.rs:182
↓ 3 callers
Method
aabb_collides
Check if this Aabb intersects with `other`
lib/rc_shared/src/aabb.rs:103
↓ 3 callers
Function
clamp_map
(input: Range<f64>, output: Range<f64>, v: T)
server/src/game/generation/phase2.rs:129
↓ 3 callers
Method
get_block_id
(&self, pos: GlobalBlockPosition)
server/src/game/world/data.rs:86
↓ 3 callers
Function
get_channel
(protocol: &Protocol)
lib/rc_networking/src/lib.rs:36
↓ 3 callers
Method
get_identifier
(&self)
lib/rc_shared/src/block/mod.rs:157
↓ 3 callers
Method
get_start_id_by_definition
Gets the beginning of the block id's for a block definition
lib/rc_shared/src/block/mod.rs:101
↓ 3 callers
Function
jwt_sign
(audience: &str, username: &str, subject: u64, validity: Duration)
api/src/jwt.rs:16
↓ 3 callers
Method
load
( &'a self, reader: &'a mut Reader<'_>, _settings: &'a Self::Settings, _load_c
lib/rc_shared/src/item/loader.rs:13
↓ 3 callers
Method
position
(&self)
client/src/systems/chunk/nearby_cache.rs:23
↓ 3 callers
Method
send
(&self, message: Protocol)
lib/rc_networking/src/bistream/native.rs:92
↓ 3 callers
Method
shifted
(mut self, movement: Vector3<i32>)
server/src/game/generation/structures/mod.rs:37
↓ 3 callers
Function
signum
(n: f32)
client/src/systems/physics/raycasts.rs:142
↓ 3 callers
Function
stop_clicking
( locals: &mut MouseInteractionResource, transforms: &mut Query<(&mut Transform, &mut Visibility), Wit
client/src/game/interaction/destroy.rs:20
↓ 3 callers
Method
uncapture
(&mut self, query: &mut Query<&mut Visibility>)
client/src/systems/ui/console/mod.rs:139
↓ 3 callers
Function
update_history_item
( query: &mut Query<(&mut Text, &mut BackgroundColor, &mut Visibility)>, item_entity: Entity, text
client/src/systems/ui/console/ui.rs:258
↓ 3 callers
Function
verify_stream
Channel must send data to be created, so verify data sent and remove from reader
lib/rc_networking/src/client/handshake.rs:24
↓ 3 callers
Method
width
(&self)
lib/rc_shared/src/atlas.rs:99
↓ 3 callers
Function
world_to_index_unchecked
(world_position: Vector3<i32>, index_center: Vector3<i32>)
client/src/systems/chunk/nearby_chunk_map.rs:206
↓ 2 callers
Method
build_lighting
( &self, context: &mut ChunkBuildContext )
client/src/systems/chunk/builder/lighting.rs:28
↓ 2 callers
Function
calculate_color
(color: &BlockLightRecord)
client/src/systems/chunk/builder/lighting.rs:157
↓ 2 callers
Method
collides
(&self, other: &StructureBoundingBox)
server/src/game/generation/structures/mod.rs:24
↓ 2 callers
Function
do_raycast
Attempts a raycast of the terrain
client/src/systems/physics/raycasts.rs:15
↓ 2 callers
Function
error
(message: &str)
client/src/authentication.rs:21
↓ 2 callers
Function
generate_item_mesh
( identifier: &str, item_states: &ItemStates )
client/src/game/game_object/mesh.rs:14
↓ 2 callers
Method
generate_viewable_map
( &self, block_states: &BlockStates, build_context: &ChunkBuildContext, chunk_
client/src/systems/chunk/data/viewable.rs:34
↓ 2 callers
Method
get_chunk
(&self, pos: Vector3<i32>)
client/src/systems/chunk/nearby_cache.rs:72
↓ 2 callers
Method
get_default
(&self)
client/src/systems/asset/atlas/resource_packs.rs:25
↓ 2 callers
Method
get_image
(&self)
lib/rc_shared/src/atlas.rs:63
↓ 2 callers
Method
get_surrounding_voxel_collision_colliders
Get the colliders of all blocks that could come in contact with an `Aabb`
lib/rc_shared/src/aabb.rs:117
↓ 2 callers
Method
insert_chunk
( &mut self, chunk: ChunkData )
server/src/game/world/data.rs:43
↓ 2 callers
Method
insert_game_object
( &mut self, game_object_id: GameObjectId, entity: Entity, chunk_pos: Vector3<
server/src/game/world/data.rs:52
↓ 2 callers
Method
job
(&mut self, value: &JsValue)
client/src/systems/chunk/builder/thread/platform/wasm.rs:113
↓ 2 callers
Function
jwt_validate
(token: String, audience: &str)
api/src/jwt.rs:38
↓ 2 callers
Method
load_states
(&mut self, path: String, asset_server: &AssetServer)
lib/rc_shared/src/item/mod.rs:49
↓ 2 callers
Function
map
Takes a `value` in range `input` and converts it to the range `output`
lib/rc_shared/src/helpers.rs:186
↓ 2 callers
Function
negotiate_handshake
Negotiates a set of streams, and user id with the connection
lib/rc_networking/src/client/handshake.rs:15
↓ 2 callers
Function
open_new_conn
Accepts new connections then creates network channels
lib/rc_networking/src/server/systems.rs:74
↓ 2 callers
Function
player_leg
( entity_commands: &mut EntityCommands, meshes: &mut Assets<Mesh>, handle: Handle<TranslucentChunk
client/src/game/game_object/player.rs:447
↓ 2 callers
Method
push_item
Pushes an type into the inventory. Returns true if inserted, false if no space
server/src/game/inventory.rs:50
↓ 2 callers
Method
put_slot
(&mut self, content: Option<ItemStack>, slot: usize)
client/src/game/inventory/mod.rs:55
↓ 2 callers
Function
read_exact
Reads an exact amount of bytes from a RecvStream
lib/rc_networking/src/bistream/mod.rs:32
↓ 2 callers
Method
recv
(&mut self)
lib/rc_networking/src/bistream/wasm.rs:84
↓ 2 callers
Function
rotate_sun_moon_sprite
( day_progress: f32, query: &mut Query<&mut Transform>, entity: &Entity )
client/src/game/world/sun.rs:119
↓ 2 callers
Method
run
Runs the node logic This is where you encode draw commands. This will run on every view on which the graph is running. If you don't want your effect
client/src/systems/post_processing/node.rs:43
↓ 2 callers
Method
selected_item
Gets the select block's, block id
client/src/game/inventory/mod.rs:30
↓ 2 callers
Function
start
()
client/src/start.rs:48
↓ 2 callers
Method
translate_with_collision_detection
Translates a physics object by a delta, with delta position collision detection
client/src/systems/physics/mod.rs:61
↓ 2 callers
Method
unload_all_chunks
(&mut self, commands: &mut Commands)
client/src/systems/chunk/mod.rs:156
↓ 2 callers
Method
unload_chunk
(&mut self, position: Vector3<i32>, commands: &mut Commands)
client/src/systems/chunk/mod.rs:164
↓ 2 callers
Method
update_column
Loops over chunks in a column and populates the data for its ChunkColumnData Currently this is skylight levels
server/src/game/world/column/update.rs:15
↓ 1 callers
Function
add_structures
Adds structures to chunk `world_pos` is the position of `world`, while `generation_pos` is a surrounding chunk that is having its structures generated
server/src/game/generation/phase4.rs:13
↓ 1 callers
Method
build
(&self, app: &mut App)
client/src/systems/api/mod.rs:26
↓ 1 callers
Method
build_mesh
( &self, block_states: &BlockStates, edge_faces: bool, context: &ChunkBuildCon
client/src/systems/chunk/builder/generate_mesh.rs:23
next →
1–100 of 594, ranked by callers