9
0
mirror of https://github.com/Winds-Studio/Leaf.git synced 2026-01-06 15:51:31 +00:00
Files
Leaf/leaf-server/src/main/java/me/titaniumtown/ArrayConstants.java
2025-03-31 15:56:52 -04:00

20 lines
959 B
Java

// Gale - JettPack - reduce array allocations
package me.titaniumtown;
public final class ArrayConstants {
private ArrayConstants() {}
public static final Object[] emptyObjectArray = new Object[0];
public static final short[] emptyShortArray = new short[0];
public static final int[] emptyIntArray = new int[0];
public static final int[] zeroSingletonIntArray = new int[]{0};
public static final byte[] emptyByteArray = new byte[0];
public static final String[] emptyStringArray = new String[0];
public static final long[] emptyLongArray = new long[0];
public static final org.bukkit.entity.Entity[] emptyBukkitEntityArray = new org.bukkit.entity.Entity[0];
public static final net.minecraft.world.entity.Entity[] emptyEntityArray = new net.minecraft.world.entity.Entity[0];
//public static final net.minecraft.server.level.ServerLevel[] emptyServerLevelArray = new net.minecraft.server.level.ServerLevel[0];
}