mirror of
https://github.com/GTNewHorizons/Postea.git
synced 2026-11-11 16:07:36 +00:00
Significantly reduce Integer.valueOf() allocation spam (#9)
This commit is contained in:
1 parent
3c29e17434
commit
ff224e4b1f
2 files changed
+4
-2
No files matched your search
@@ -1,4 +1,5 @@
|
||||
|
||||
dependencies {
|
||||
api('com.github.GTNewHorizons:NotEnoughIds:2.1.6:dev')
|
||||
api("com.github.GTNewHorizons:GTNHLib:0.6.21:dev")
|
||||
}
|
||||
@@ -1,7 +1,6 @@
|
||||
package com.gtnewhorizons.postea.api;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.Map;
|
||||
import java.util.function.BiFunction;
|
||||
|
||||
@@ -9,10 +8,12 @@ import net.minecraft.world.World;
|
||||
|
||||
import com.gtnewhorizons.postea.utility.BlockConversionInfo;
|
||||
|
||||
import it.unimi.dsi.fastutil.ints.IntOpenHashSet;
|
||||
|
||||
public class BlockReplacementManager {
|
||||
|
||||
public static final Map<String, BiFunction<BlockConversionInfo, World, BlockConversionInfo>> blockReplacementMap = new HashMap<>();
|
||||
public static final HashSet<Integer> posteaMarkedIDs = new HashSet<>();
|
||||
public static final IntOpenHashSet posteaMarkedIDs = new IntOpenHashSet();
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
public static void addBlockReplacement(String blockNameIn,
|
||||
|
||||
Reference in new issue
Block a user