public class ClientHooks
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
ALLOWED_CHARS |
private static java.util.Set<java.lang.String> |
badTextureDomains |
private static com.google.common.collect.Table<java.lang.String,java.lang.String,java.util.Set<ResourceLocation>> |
brokenTextures |
private static org.apache.logging.log4j.Marker |
CLIENTHOOKS |
private static com.google.common.base.CharMatcher |
DISALLOWED_CHAR_MATCHER |
private static ResourceLocation |
iconSheet |
private static org.apache.logging.log4j.Logger |
LOGGER |
private static com.google.common.collect.SetMultimap<java.lang.String,ResourceLocation> |
missingTextures |
Constructor and Description |
---|
ClientHooks() |
Modifier and Type | Method and Description |
---|---|
static void |
drawForgePingInfo(MultiplayerScreen gui,
ServerData target,
int x,
int y,
int width,
int relativeMouseX,
int relativeMouseY) |
static void |
firePlayerLogin(PlayerController pc,
ClientPlayerEntity player,
NetworkManager networkManager) |
static void |
firePlayerLogout(PlayerController pc,
ClientPlayerEntity player) |
static void |
firePlayerRespawn(PlayerController pc,
ClientPlayerEntity oldPlayer,
ClientPlayerEntity newPlayer,
NetworkManager networkManager) |
static java.lang.String |
fixDescription(java.lang.String description) |
private static NetworkManager |
getClientToServerNetworkManager() |
(package private) static java.io.File |
getSavesDir() |
static void |
handleClientWorldClosing(ClientWorld world) |
static void |
logMissingTextureErrors() |
static void |
processForgeListPingData(ServerStatusResponse packet,
ServerData target) |
static java.lang.String |
stripSpecialChars(java.lang.String message) |
static void |
trackBrokenTexture(ResourceLocation resourceLocation,
java.lang.String error) |
static void |
trackMissingTexture(ResourceLocation resourceLocation) |
static void |
tryLoadExistingWorld(WorldSelectionScreen selectWorldGUI,
WorldSummary comparator) |
private static final org.apache.logging.log4j.Logger LOGGER
private static final org.apache.logging.log4j.Marker CLIENTHOOKS
private static final java.lang.String ALLOWED_CHARS
private static final com.google.common.base.CharMatcher DISALLOWED_CHAR_MATCHER
private static final ResourceLocation iconSheet
private static com.google.common.collect.SetMultimap<java.lang.String,ResourceLocation> missingTextures
private static java.util.Set<java.lang.String> badTextureDomains
private static com.google.common.collect.Table<java.lang.String,java.lang.String,java.util.Set<ResourceLocation>> brokenTextures
@Nullable public static void processForgeListPingData(ServerStatusResponse packet, ServerData target)
public static void drawForgePingInfo(MultiplayerScreen gui, ServerData target, int x, int y, int width, int relativeMouseX, int relativeMouseY)
public static java.lang.String fixDescription(java.lang.String description)
static java.io.File getSavesDir()
public static void tryLoadExistingWorld(WorldSelectionScreen selectWorldGUI, WorldSummary comparator)
private static NetworkManager getClientToServerNetworkManager()
public static void handleClientWorldClosing(ClientWorld world)
public static java.lang.String stripSpecialChars(java.lang.String message)
public static void trackMissingTexture(ResourceLocation resourceLocation)
public static void trackBrokenTexture(ResourceLocation resourceLocation, java.lang.String error)
public static void logMissingTextureErrors()
public static void firePlayerLogin(PlayerController pc, ClientPlayerEntity player, NetworkManager networkManager)
public static void firePlayerLogout(PlayerController pc, ClientPlayerEntity player)
public static void firePlayerRespawn(PlayerController pc, ClientPlayerEntity oldPlayer, ClientPlayerEntity newPlayer, NetworkManager networkManager)