Repository navigation
0.5.0
Pre-release
Pre-release
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();