| BEG | INT | ADV | EXP | MAS | |
|---|---|---|---|---|---|
| Carpentry | |||||
| Cooking | |||||
| Farming | |||||
| First Aid | |||||
| Electrical |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#event_stream_format | |
| class_name EventStreamClient | |
| extends RefCounted | |
| enum Status { DISCONNECTED, CONNECTING, CONNECTED } | |
| signal connected | |
| signal connection_failed(error: String) | |
| signal disconnected(error: String) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| if [[ $@ == "-h" ]] || [[ $@ == "--help" ]]; then | |
| echo "usage: ./pack-instance.sh [output]" | |
| echo "Creates a Prism Launcher compatible instance .zip file from your pack.toml." | |
| echo "If 'include' directory exists, its contents are copied to the minecraft folder." | |
| echo "If 'icon.png' exists, it's added to the pack and its instance config." | |
| echo "Output defaults to '<name>_v<version>.zip' in the current directory." | |
| exit 0 | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public readonly unsafe struct Query : IEnumerable<Iterator> | |
| { | |
| private readonly World _world = null!; | |
| private readonly ecs_query_t* _handle = null; | |
| public Query(World world, string expr) | |
| { | |
| ecs_query_desc_t desc = default; | |
| desc.filter.expr = expr; | |
| _world = world; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Runtime.CompilerServices; | |
| using System.Runtime.InteropServices; | |
| namespace gaemstone.Utility | |
| { | |
| public delegate ref TResult ValueSelector<TValue, TResult>(ref TValue value); | |
| public delegate bool ValueFilter<TValue>(ref TValue value); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use num_traits::PrimInt; | |
| use std::{ | |
| mem::size_of, | |
| ops::{Shl, Shr}, | |
| }; | |
| #[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd)] | |
| pub struct ZOrderIndex<T: PrimInt>(T); | |
| impl<T: PrimInt> ZOrderIndex<T> { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using gaemstone.Common.Utility; | |
| namespace gaemstone.Common.Collections | |
| { | |
| public class RefDictionary<TKey, TValue> | |
| where TKey : struct | |
| { | |
| public struct Entry |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Text; | |
| using Vintagestory.API.MathTools; | |
| namespace Vintagestory.Essentials | |
| { | |
| [Flags] | |
| public enum ProperNeighbor : byte | |
| { | |
| None = 0, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import crafttweaker.item.IIngredient; | |
| import crafttweaker.item.IItemStack; | |
| import mods.dropt.Dropt; | |
| // The chance (1/X) for a gravel pile to drop from | |
| // breaking a dirt block instead of a dirt pile. | |
| // Allows harvesting flint in gravel-sparse places. | |
| static DIRT_GRAVEL_WEIGHT as int = 6; |
NewerOlder