File Details
lightningtweaks-1.12.2-1.2.0.0.jar
- R
- Apr 7, 2019
- 24.91 KB
- 1.2K
- 1.12.2
File Name
lightningtweaks-1.12.2-1.2.0.0.jar
Supported Versions
- 1.12.2
This is a rather large update, with a number of API changes. Functionality should vary minimally, but the majority of known bugs have been phased out. I would strongly suggest updating to this version.
API is any changes to the code that either have no effect on functionality or have little to no effect on gameplay.
Functionality is any changes to the code that have a large and direct effect on gameplay or usability of any aspect of Lightning Tweaks.
ConfigLT
-
API
- + class MetallicConfig
- + MetallicConfig metallic
ConfigLT.EventHandler
-
API
- onConfigChangedEvent(OnConfigChangeEvent) now calls LightningTweaks.refresh().
ConfigLT.MetallicConfig
-
API
- + String[] blacklist
- + String[] whitelist
LightningTweaks
-
API
- + refresh()
-
Functionality
- postInit(FMLPostInitializationEvent) no longer posts logs specific to AttributeMetallic.postInit(FMLPostInitializationEvent).
LoggerLT
-
Functionality
- preInit(FMLPreInitializationEvent) now posts specific results to the logger at the info level.
common.AttributeMetallic
-
API
- + contains(String, String[])
- + isMetallic(String)
- - byte itemsProcessed
- - byte recipesProcessed
- addKeyword(String...) → setItems()
- isMetallic(Block) → isMetallic(IBlockState)
- isMetallic(Item) → isMetallic(ItemStack)
- recipeContainsKeywords(IRecipe, String...) → isMetallic(IRecipe)
- HashSet<String> ITEMS → Set<String> items
-
Functionality
- A user-defined whitelist and blacklist are now used in place of keywords.
- Ingredients are now searched for in items before looking at the whitelist and blacklist.
- Logs no longer include information about recipes processed.
- Logs now contain information about what specific items are found to be metallic.
- setItems() now posts specific results to the logger at the info level.
- setItems() should now be faster than in previous iterations.
- The output of each recipe is now checked for the keywords.
common.Searcher
-
API
- Random RANDOM → Random random
- getRandomBlock(Collection<Entry<Float, List<BlockPos>>>, float) now calculates the random block in reverse order, checking a collection of ascending cumulative probability values until the random float is below the probability.
- isEntityHoldingMetallicItem(EntityLivingBase) no longer converts ItemStacks to Items in accordance to changes in AttributeMetallic.isMetallic(ItemStack).
- isEntityWearingMetallicArmor(Entity) no longer converts ItemStacks to Items in accordance to changes in AttributeMetallic.isMetallic(ItemStack).
- randomStrike(Map<BlockPos, Entity>, World, byte) now stores scores in a LinkedHashMap rather than a HashMap. The cumulative score is attached to BlockPoses after adding rather than before. Both of these changes amount to the discrete cumulative probability function for lightning strikes to be stored in ascending order where the highest value is the sum of all possible probabilities.
-
Functionality
- Probabilistic lightning strikes now function correctly. A number of issues that were described in the API changes contributed to the probability for each block to be struck being assigned and/or interpreted incorrectly. Only in rare circumstances did it function properly, such as in a flat world, such that there was minimal variation in scores and thus the HashMap of scores was ordered solely by chance. This is now fixed and thoroughly tested for flaws.
compatibility.Compatibility
-
API
- boolean WEATHER2_INSTALLED → boolean weather2
Dependencies
- CoroUtil 1.2.27 → CoroUtil 1.2.31
- Minecraft Forge 14.23.5.2768 → Minecraft Forge 14.23.5.2825

