mirror of
https://github.com/Jacobwasbeast/LegacyWeaveLoader.git
synced 2026-05-21 21:24:30 +00:00
974 B
974 B
API Reference (Short)
Registry.Block
RegisteredBlock Register(string id, BlockProperties properties)
Creates a block and its inventory item.
Registry.Item
RegisteredItem Register(string id, ItemProperties properties)
Creates a new item.
Registry.Recipe
void AddFurnace(string inputId, string outputId, float xp)
Adds a furnace recipe.
GameEvents
event EventHandler<BlockBreakEventArgs> OnBlockBreak;
event EventHandler<BlockPlaceEventArgs> OnBlockPlace;
event EventHandler<ChatEventArgs> OnChat;
event EventHandler<EntitySpawnEventArgs> OnEntitySpawn;
event EventHandler<PlayerJoinEventArgs> OnPlayerJoin;
Logger
Logger.Debug(string message)
Logger.Info(string message)
Logger.Warning(string message)
Logger.Error(string message)
Identifier
Namespaced IDs use "namespace:path" (for example, "mymod:ruby_ore"). If no namespace is provided, "minecraft" is assumed.