Package net.minecraftforge.fml.client
Class ClientHooks
- java.lang.Object
-
- net.minecraftforge.fml.client.ClientHooks
-
public class ClientHooks extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Set<java.lang.String>badTextureDomainsprivate static com.google.common.collect.Table<java.lang.String,java.lang.String,java.util.Set<ResourceLocation>>brokenTexturesprivate static org.apache.logging.log4j.MarkerCLIENTHOOKSprivate static ResourceLocationiconSheetprivate static org.apache.logging.log4j.LoggerLOGGERprivate static com.google.common.collect.SetMultimap<java.lang.String,ResourceLocation>missingTextures
-
Constructor Summary
Constructors Constructor Description ClientHooks()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voiddrawForgePingInfo(MultiplayerScreen gui, ServerData target, MatrixStack mStack, int x, int y, int width, int relativeMouseX, int relativeMouseY)static voidfirePlayerLogin(PlayerController pc, ClientPlayerEntity player, NetworkManager networkManager)static voidfirePlayerLogout(PlayerController pc, ClientPlayerEntity player)static voidfirePlayerRespawn(PlayerController pc, ClientPlayerEntity oldPlayer, ClientPlayerEntity newPlayer, NetworkManager networkManager)static java.lang.StringfixDescription(java.lang.String description)private static NetworkManagergetClientToServerNetworkManager()(package private) static java.io.FilegetSavesDir()static voidhandleClientWorldClosing(ClientWorld world)static voidlogMissingTextureErrors()static voidprocessForgeListPingData(ServerStatusResponse packet, ServerData target)static voidtrackBrokenTexture(ResourceLocation resourceLocation, java.lang.String error)static voidtrackMissingTexture(ResourceLocation resourceLocation)
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
CLIENTHOOKS
private static final org.apache.logging.log4j.Marker CLIENTHOOKS
-
iconSheet
private static final ResourceLocation iconSheet
-
missingTextures
private static com.google.common.collect.SetMultimap<java.lang.String,ResourceLocation> missingTextures
-
badTextureDomains
private static java.util.Set<java.lang.String> badTextureDomains
-
brokenTextures
private static com.google.common.collect.Table<java.lang.String,java.lang.String,java.util.Set<ResourceLocation>> brokenTextures
-
-
Method Detail
-
processForgeListPingData
@Nullable public static void processForgeListPingData(ServerStatusResponse packet, ServerData target)
-
drawForgePingInfo
public static void drawForgePingInfo(MultiplayerScreen gui, ServerData target, MatrixStack mStack, int x, int y, int width, int relativeMouseX, int relativeMouseY)
-
fixDescription
public static java.lang.String fixDescription(java.lang.String description)
-
getSavesDir
static java.io.File getSavesDir()
-
getClientToServerNetworkManager
private static NetworkManager getClientToServerNetworkManager()
-
handleClientWorldClosing
public static void handleClientWorldClosing(ClientWorld world)
-
trackMissingTexture
public static void trackMissingTexture(ResourceLocation resourceLocation)
-
trackBrokenTexture
public static void trackBrokenTexture(ResourceLocation resourceLocation, java.lang.String error)
-
logMissingTextureErrors
public static void logMissingTextureErrors()
-
firePlayerLogin
public static void firePlayerLogin(PlayerController pc, ClientPlayerEntity player, NetworkManager networkManager)
-
firePlayerLogout
public static void firePlayerLogout(PlayerController pc, ClientPlayerEntity player)
-
firePlayerRespawn
public static void firePlayerRespawn(PlayerController pc, ClientPlayerEntity oldPlayer, ClientPlayerEntity newPlayer, NetworkManager networkManager)
-
-