Skip to content

Commit 086bc19

Browse files
committed
rename to util
1 parent ccefca7 commit 086bc19

File tree

9 files changed

+32
-32
lines changed

9 files changed

+32
-32
lines changed

AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/modules/lagpreventions/regionalactivity/BlockFormOrGrow.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package me.xginko.aef.modules.lagpreventions.regionalactivity;
22

33
import com.cryptomorin.xseries.XMaterial;
4-
import me.xginko.aef.utils.GenericHelper;
4+
import me.xginko.aef.utils.GenericUtil;
55
import org.bukkit.event.EventHandler;
66
import org.bukkit.event.EventPriority;
77
import org.bukkit.event.block.BlockFormEvent;
@@ -20,9 +20,9 @@ public BlockFormOrGrow() {
2020
10000,
2121
10.0,
2222
120.0,
23-
GenericHelper.mapOfEntries(
24-
GenericHelper.mapEntry(XMaterial.ICE, 1000),
25-
GenericHelper.mapEntry(XMaterial.SNOW, 1000)),
23+
GenericUtil.mapOfEntries(
24+
GenericUtil.mapEntry(XMaterial.ICE, 1000),
25+
GenericUtil.mapEntry(XMaterial.SNOW, 1000)),
2626
"Limits blocks spreading or forming based on world conditions within a\n" +
2727
"configurable radius and timeframe to help reduce lag by cancelling burst\n" +
2828
"activity hotspots.\n" +

AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/modules/lagpreventions/regionalactivity/BlockPhysics.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package me.xginko.aef.modules.lagpreventions.regionalactivity;
22

33
import com.cryptomorin.xseries.XMaterial;
4-
import me.xginko.aef.utils.GenericHelper;
4+
import me.xginko.aef.utils.GenericUtil;
55
import org.bukkit.event.EventHandler;
66
import org.bukkit.event.EventPriority;
77
import org.bukkit.event.block.BlockPhysicsEvent;
@@ -19,9 +19,9 @@ public BlockPhysics() {
1919
20000,
2020
10.0,
2121
120.0,
22-
GenericHelper.mapOfEntries(
23-
GenericHelper.mapEntry(XMaterial.WATER, 256000),
24-
GenericHelper.mapEntry(XMaterial.LAVA, 256000)),
22+
GenericUtil.mapOfEntries(
23+
GenericUtil.mapEntry(XMaterial.WATER, 256000),
24+
GenericUtil.mapEntry(XMaterial.LAVA, 256000)),
2525
"Limits block physics within a configurable radius and timeframe\n" +
2626
"to help reduce lag by cancelling burst activity hotspots.\n" +
2727
"\n" +

AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/modules/lagpreventions/regionalactivity/EntitySpawns.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package me.xginko.aef.modules.lagpreventions.regionalactivity;
22

33
import com.cryptomorin.xseries.XEntityType;
4-
import me.xginko.aef.utils.GenericHelper;
4+
import me.xginko.aef.utils.GenericUtil;
55
import org.bukkit.event.EventHandler;
66
import org.bukkit.event.EventPriority;
77
import org.bukkit.event.entity.EntitySpawnEvent;
@@ -19,9 +19,9 @@ public EntitySpawns() {
1919
20000,
2020
10.0,
2121
120.0,
22-
GenericHelper.mapOfEntries(
23-
GenericHelper.mapEntry(XEntityType.WITHER, 50),
24-
GenericHelper.mapEntry(XEntityType.WITHER_SKULL, 200)),
22+
GenericUtil.mapOfEntries(
23+
GenericUtil.mapEntry(XEntityType.WITHER, 50),
24+
GenericUtil.mapEntry(XEntityType.WITHER_SKULL, 200)),
2525
"Limits entity spawning activity within a configurable radius and timeframe\n" +
2626
"to help reduce lag by cancelling high activity hotspots.\n" +
2727
"\n" +

AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/modules/lagpreventions/regionalactivity/EntityTargeting.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import com.cryptomorin.xseries.XEntityType;
44
import io.github.thatsmusic99.configurationmaster.api.ConfigSection;
5-
import me.xginko.aef.utils.GenericHelper;
5+
import me.xginko.aef.utils.GenericUtil;
66
import me.xginko.aef.utils.LocationUtil;
77
import org.bukkit.entity.EntityType;
88
import org.bukkit.event.EventHandler;
@@ -30,7 +30,7 @@ public EntityTargeting() {
3030
20000,
3131
14.0,
3232
120.0,
33-
GenericHelper.mapOfEntries(GenericHelper.mapEntry(XEntityType.VILLAGER, 1000)),
33+
GenericUtil.mapOfEntries(GenericUtil.mapEntry(XEntityType.VILLAGER, 1000)),
3434
"Limits entities targeting other entities within a configurable radius\n" +
3535
"and timeframe to help reduce lag by cancelling burst activity hotspots."
3636
);

AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/modules/lagpreventions/regionalactivity/LiquidSpread.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package me.xginko.aef.modules.lagpreventions.regionalactivity;
22

33
import com.cryptomorin.xseries.XMaterial;
4-
import me.xginko.aef.utils.GenericHelper;
4+
import me.xginko.aef.utils.GenericUtil;
55
import org.bukkit.event.EventHandler;
66
import org.bukkit.event.EventPriority;
77
import org.bukkit.event.block.BlockFromToEvent;
@@ -19,9 +19,9 @@ public LiquidSpread() {
1919
20000,
2020
12.0,
2121
100.0,
22-
GenericHelper.mapOfEntries(
23-
GenericHelper.mapEntry(XMaterial.WATER, 4000),
24-
GenericHelper.mapEntry(XMaterial.LAVA, 6000)),
22+
GenericUtil.mapOfEntries(
23+
GenericUtil.mapEntry(XMaterial.WATER, 4000),
24+
GenericUtil.mapEntry(XMaterial.LAVA, 6000)),
2525
"Limits liquid spreading within a configurable radius and timeframe\n" +
2626
"to help reduce lag by cancelling high activity hotspots.\n" +
2727
"\n" +

AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/modules/lagpreventions/regionalactivity/Pathfinding.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import com.cryptomorin.xseries.XEntityType;
44
import com.destroystokyo.paper.event.entity.EntityPathfindEvent;
55
import io.github.thatsmusic99.configurationmaster.api.ConfigSection;
6-
import me.xginko.aef.utils.GenericHelper;
6+
import me.xginko.aef.utils.GenericUtil;
77
import me.xginko.aef.utils.LocationUtil;
88
import org.bukkit.entity.EntityType;
99
import org.bukkit.event.EventHandler;
@@ -31,7 +31,7 @@ public Pathfinding() {
3131
10000,
3232
14.0,
3333
120.0,
34-
GenericHelper.mapOfEntries(GenericHelper.mapEntry(XEntityType.VILLAGER, 1000)),
34+
GenericUtil.mapOfEntries(GenericUtil.mapEntry(XEntityType.VILLAGER, 1000)),
3535
"Limits entities deciding to pathfind to a specific location\n" +
3636
"within a configurable radius and timeframe to help reduce lag\n" +
3737
"by cancelling burst activity hotspots."

AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/modules/lagpreventions/regionalactivity/Pistons.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package me.xginko.aef.modules.lagpreventions.regionalactivity;
22

33
import com.cryptomorin.xseries.XMaterial;
4-
import me.xginko.aef.utils.GenericHelper;
4+
import me.xginko.aef.utils.GenericUtil;
55
import org.bukkit.event.EventHandler;
66
import org.bukkit.event.EventPriority;
77
import org.bukkit.event.block.BlockPistonExtendEvent;
@@ -20,9 +20,9 @@ public Pistons() {
2020
10000,
2121
10.0,
2222
120.0,
23-
GenericHelper.mapOfEntries(
24-
GenericHelper.mapEntry(XMaterial.PISTON, 1000),
25-
GenericHelper.mapEntry(XMaterial.STICKY_PISTON, 1000)),
23+
GenericUtil.mapOfEntries(
24+
GenericUtil.mapEntry(XMaterial.PISTON, 1000),
25+
GenericUtil.mapEntry(XMaterial.STICKY_PISTON, 1000)),
2626
"Limits piston movement within a configurable radius and timeframe\n" +
2727
"to help reduce lag by cancelling high activity hotspots.\n" +
2828
"\n" +

AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/modules/lagpreventions/regionalactivity/Redstone.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package me.xginko.aef.modules.lagpreventions.regionalactivity;
22

33
import com.cryptomorin.xseries.XMaterial;
4-
import me.xginko.aef.utils.GenericHelper;
4+
import me.xginko.aef.utils.GenericUtil;
55
import org.bukkit.event.EventHandler;
66
import org.bukkit.event.EventPriority;
77
import org.bukkit.event.block.BlockRedstoneEvent;
@@ -19,12 +19,12 @@ public Redstone() {
1919
20000,
2020
10.0,
2121
120.0,
22-
GenericHelper.mapOfEntries(
23-
GenericHelper.mapEntry(XMaterial.SCULK_SENSOR, 500),
24-
GenericHelper.mapEntry(XMaterial.SCULK_SHRIEKER, 300),
25-
GenericHelper.mapEntry(XMaterial.CALIBRATED_SCULK_SENSOR, 500),
26-
GenericHelper.mapEntry(XMaterial.OBSERVER, 1500),
27-
GenericHelper.mapEntry(XMaterial.COMPARATOR, 2000)),
22+
GenericUtil.mapOfEntries(
23+
GenericUtil.mapEntry(XMaterial.SCULK_SENSOR, 500),
24+
GenericUtil.mapEntry(XMaterial.SCULK_SHRIEKER, 300),
25+
GenericUtil.mapEntry(XMaterial.CALIBRATED_SCULK_SENSOR, 500),
26+
GenericUtil.mapEntry(XMaterial.OBSERVER, 1500),
27+
GenericUtil.mapEntry(XMaterial.COMPARATOR, 2000)),
2828
"Limits redstone activity within a configurable radius and timeframe\n" +
2929
"to help reduce lag by cancelling high activity hotspots.\n" +
3030
"\n" +

shared/src/main/java/me/xginko/aef/utils/GenericHelper.java renamed to shared/src/main/java/me/xginko/aef/utils/GenericUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import java.util.HashMap;
55
import java.util.Map;
66

7-
public class GenericHelper {
7+
public final class GenericUtil {
88

99
@SafeVarargs
1010
public static <K, V> Map<K, V> mapOfEntries(Map.Entry<K, V>... entries) {

0 commit comments

Comments
 (0)