This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.github.games647.changeskin.core.model; | |
| import com.github.games647.changeskin.core.ChangeSkinCore; | |
| import com.github.games647.changeskin.core.model.mojang.skin.DataModel; | |
| import com.github.games647.changeskin.core.model.mojang.skin.MetadataModel; | |
| import com.github.games647.changeskin.core.model.mojang.skin.SkinModel; | |
| import com.github.games647.changeskin.core.model.mojang.skin.TextureSourceModel; | |
| import com.google.gson.Gson; | |
| import java.nio.charset.StandardCharsets; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.github.games647.changeskin.core.model.mojang.auth; | |
| import com.github.games647.changeskin.core.model.PlayerProfile; | |
| public class Account { | |
| private final PlayerProfile profile; | |
| private final String accessToken; | |
| public Account(PlayerProfile profile, String accessToken) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import com.google.common.collect.ImmutableMap; | |
| import com.google.common.collect.Maps; | |
| import java.util.Collections; | |
| import java.util.Map; | |
| public class MethodMeasurement implements Comparable<MethodMeasurement> { | |
| private final String id; | |
| private final String className; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class RollingOverHistory { | |
| private final float[] samples; | |
| private float total; | |
| private int currentPosition = 1; | |
| private int currentSize = 1; | |
| public RollingOverHistory(int size, float firstValue) { | |
| this.samples = new float[size]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.github.games647.lagmonitor; | |
| import com.google.common.collect.Maps; | |
| import java.util.HashMap; | |
| import java.util.Map.Entry; | |
| import org.bukkit.Bukkit; | |
| import org.bukkit.plugin.Plugin; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.github.games647.lagmonitor; | |
| import com.google.common.collect.ImmutableSet; | |
| import com.google.common.collect.Sets; | |
| import java.io.FilePermission; | |
| import java.net.SocketPermission; | |
| import java.security.Permission; | |
| import java.util.Arrays; | |
| import java.util.Map.Entry; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.github.games647.lagmonitor.listeners; | |
| import com.google.common.collect.Lists; | |
| import com.google.common.collect.Sets; | |
| import java.io.IOException; | |
| import java.net.Proxy; | |
| import java.net.ProxySelector; | |
| import java.net.SocketAddress; | |
| import java.net.URI; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.bukkit.entity.Player; | |
| import org.bukkit.map.MapCanvas; | |
| import org.bukkit.map.MapPalette; | |
| import org.bukkit.map.MapRenderer; | |
| import org.bukkit.map.MapView; | |
| import org.bukkit.map.MinecraftFont; | |
| public abstract class GraphRenderer extends MapRenderer { | |
| //max height and width = 128 (index from 0-127) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static UUID parseId(String withoutDashes) { | |
| return UUID.fromString(withoutDashes.substring(0, 8) | |
| + "-" + withoutDashes.substring(8, 12) | |
| + "-" + withoutDashes.substring(12, 16) | |
| + "-" + withoutDashes.substring(16, 20) | |
| + "-" + withoutDashes.substring(20, 32)); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import com.comphenix.protocol.PacketType; | |
| import com.comphenix.protocol.ProtocolLibrary; | |
| import com.comphenix.protocol.ProtocolManager; | |
| import com.comphenix.protocol.events.PacketContainer; | |
| import com.comphenix.protocol.reflect.FieldAccessException; | |
| import com.comphenix.protocol.wrappers.EnumWrappers.Difficulty; | |
| import com.comphenix.protocol.wrappers.EnumWrappers.NativeGameMode; | |
| import com.comphenix.protocol.wrappers.EnumWrappers.PlayerInfoAction; | |
| import com.comphenix.protocol.wrappers.PlayerInfoData; | |
| import com.comphenix.protocol.wrappers.WrappedChatComponent; |