Repository navigation
Releases
Releases · lightyuwu/FoxUtils
Fix 0.7.1
FoxUtils
The release 0.7.0 has been removed due to this, this is honestly entirely my fault -Lighty
Fixes:
- Fixed Version code inside mod from 0.7.0
Changes:
- None
Additions:
- Added Chat Events
PlayerEventRegistry.Chat.register((player, message) -> {});0.5.0
FoxUtils
An API that adds neat and Useful things to Minecraft
This documentation shows MojMap Classes
Events
/********Block Events******/
BlockEventRegistry.Break((LevelAccessor, BlockState, BlockPos)->{ });
BlockEventRegistry.Place((LivingEntity, Level, BlockState, BlockPos)->{ });
/********Entity Events******/
EntityEventRegistry.Interact((Entity, Player, InteractionHand)->{ });Tools
/********Safe Exception Handler******/
SafeExceptionHandler.withChat(Player, ()->{ });
SafeExceptionHandler.withChat(ServerPlayer, ()->{ });
SafeExceptionHandler.withLogger(Logger, ()->{ });
/********Config .properties Loader******/
var cfg = new ModConfig(MOD_ID);
cfg.LoadIfExists(); // Initial Load
cfg.AddIfMissing("SomeFeature", false); // Add only if Config doesn't exist
cfg.Add("AnotherThing", "value"); // Always Add Something (Also Replaces)
Object value = cfg.Get("SomeFeature"); // Get the Value of something in the Loaded Config
//cfg.Load(); // Load config if you know it exists
cfg.Save();