public class ForgeHooksClient
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static Matrix4f |
flipX |
private static Matrix3f |
flipXNormal |
static java.lang.String |
forgeStatusLine |
private static org.apache.logging.log4j.Logger |
LOGGER |
(package private) static java.lang.ThreadLocal<RenderType> |
renderLayer |
private static boolean |
skyInit |
private static int |
skyRGBMultiplier |
private static int |
skyX |
private static int |
skyZ |
private static int |
slotMainHand |
(package private) static int |
worldRenderPass |
Constructor and Description |
---|
ForgeHooksClient() |
Modifier and Type | Method and Description |
---|---|
static void |
bossBarRenderPost(MainWindow res) |
static RenderGameOverlayEvent.BossInfo |
bossBarRenderPre(MainWindow res,
ClientBossInfo bossInfo,
int x,
int y,
int increment) |
static void |
dispatchRenderLast(WorldRenderer context,
MatrixStack mat,
float partialTicks)
Deprecated.
|
static void |
dispatchRenderLast(WorldRenderer context,
MatrixStack mat,
float partialTicks,
Matrix4f projectionMatrix,
long finishTimeNano) |
static void |
drawScreen(Screen screen,
int mouseX,
int mouseY,
float partialTicks) |
static void |
fillNormal(int[] faceData,
Direction facing)
internal, relies on fixed format of FaceBakery
|
static void |
fireKeyInput(int key,
int scanCode,
int action,
int modifiers) |
static void |
fireMouseInput(int button,
int action,
int mods) |
static java.lang.String |
fixDomain(java.lang.String base,
java.lang.String complex) |
static void |
gatherFluidTextures(java.util.Set<Material> textures) |
static <A extends BipedModel<?>> |
getArmorModel(LivingEntity entityLiving,
ItemStack itemStack,
EquipmentSlotType slot,
A _default) |
static java.lang.String |
getArmorTexture(Entity entity,
ItemStack armor,
java.lang.String _default,
EquipmentSlotType slot,
java.lang.String type) |
static Material |
getBlockMaterial(ResourceLocation loc) |
static int |
getColorIndex(VertexFormat fmt) |
static java.util.stream.Stream<Material> |
getFluidMaterials(Fluid fluid) |
static TextureAtlasSprite[] |
getFluidSprites(ILightReader world,
BlockPos pos,
IFluidState fluidStateIn) |
static float |
getFogDensity(FogRenderer.FogType type,
ActiveRenderInfo info,
float partial,
float density) |
static double |
getFOVModifier(GameRenderer renderer,
ActiveRenderInfo info,
double renderPartialTicks,
double fov) |
static float |
getOffsetFOV(PlayerEntity entity,
float fov) |
static int |
getSkyBlendColour(World world,
BlockPos center) |
private static Vector3f |
getVertexPos(int[] data,
int vertex) |
static int |
getWorldRenderPass() |
static IBakedModel |
handleCameraTransforms(MatrixStack matrixStack,
IBakedModel model,
ItemCameraTransforms.TransformType cameraTransformType,
boolean leftHandHackery) |
static IBakedModel |
handlePerspective(IBakedModel model,
ItemCameraTransforms.TransformType type,
MatrixStack stack) |
static void |
invalidateLog4jThreadCache() |
static void |
loadEntityShader(Entity entity,
GameRenderer entityRenderer) |
static void |
onBlockColorsInit(BlockColors blockColors) |
static EntityViewRenderEvent.CameraSetup |
onCameraSetup(GameRenderer renderer,
ActiveRenderInfo info,
float partial) |
static InputEvent.ClickInputEvent |
onClickInput(int button,
KeyBinding keyBinding,
Hand hand) |
static boolean |
onDrawBlockHighlight(WorldRenderer context,
ActiveRenderInfo info,
RayTraceResult target,
float partialTicks,
MatrixStack matrix,
IRenderTypeBuffer buffers) |
static void |
onFogRender(FogRenderer.FogType type,
ActiveRenderInfo info,
float partial,
float distance) |
static boolean |
onGuiCharTypedPost(Screen guiScreen,
char codePoint,
int modifiers) |
static boolean |
onGuiCharTypedPre(Screen guiScreen,
char codePoint,
int modifiers) |
static boolean |
onGuiKeyPressedPost(Screen guiScreen,
int keyCode,
int scanCode,
int modifiers) |
static boolean |
onGuiKeyPressedPre(Screen guiScreen,
int keyCode,
int scanCode,
int modifiers) |
static boolean |
onGuiKeyReleasedPost(Screen guiScreen,
int keyCode,
int scanCode,
int modifiers) |
static boolean |
onGuiKeyReleasedPre(Screen guiScreen,
int keyCode,
int scanCode,
int modifiers) |
static boolean |
onGuiMouseClickedPost(Screen guiScreen,
double mouseX,
double mouseY,
int button) |
static boolean |
onGuiMouseClickedPre(Screen guiScreen,
double mouseX,
double mouseY,
int button) |
static boolean |
onGuiMouseDragPost(Screen guiScreen,
double mouseX,
double mouseY,
int mouseButton,
double dragX,
double dragY) |
static boolean |
onGuiMouseDragPre(Screen guiScreen,
double mouseX,
double mouseY,
int mouseButton,
double dragX,
double dragY) |
static boolean |
onGuiMouseReleasedPost(Screen guiScreen,
double mouseX,
double mouseY,
int button) |
static boolean |
onGuiMouseReleasedPre(Screen guiScreen,
double mouseX,
double mouseY,
int button) |
static boolean |
onGuiMouseScrollPost(MouseHelper mouseHelper,
Screen guiScreen,
double scrollDelta) |
static boolean |
onGuiMouseScrollPre(MouseHelper mouseHelper,
Screen guiScreen,
double scrollDelta) |
static void |
onInputUpdate(PlayerEntity player,
MovementInput movementInput) |
static void |
onItemColorsInit(ItemColors itemColors,
BlockColors blockColors) |
static void |
onModelBake(ModelManager modelManager,
java.util.Map<ResourceLocation,IBakedModel> modelRegistry,
ModelLoader modelLoader) |
static boolean |
onMouseScroll(MouseHelper mouseHelper,
double scrollDelta) |
static boolean |
onRawMouseClicked(int button,
int action,
int mods) |
static void |
onRecipesUpdated(RecipeManager mgr) |
static ScreenshotEvent |
onScreenshot(NativeImage image,
java.io.File screenshotFile) |
static void |
onTextureStitchedPost(AtlasTexture map) |
static void |
onTextureStitchedPre(AtlasTexture map,
java.util.Set<ResourceLocation> resourceLocations) |
static ISound |
playSound(SoundEngine manager,
ISound sound) |
static void |
postDraw(VertexFormatElement.Usage attrType,
VertexFormat format,
int element,
int stride,
java.nio.ByteBuffer buffer) |
static void |
preDraw(VertexFormatElement.Usage attrType,
VertexFormat format,
int element,
int stride,
java.nio.ByteBuffer buffer) |
static void |
refreshResources(Minecraft mc,
VanillaResourceType... types) |
static void |
renderMainMenu(MainMenuScreen gui,
FontRenderer font,
int width,
int height) |
static boolean |
renderSpecificFirstPersonHand(Hand hand,
MatrixStack mat,
IRenderTypeBuffer buffers,
int light,
float partialTicks,
float interpPitch,
float swingProgress,
float equipProgress,
ItemStack stack) |
static void |
setRenderLayer(RenderType layer) |
static boolean |
shouldCauseReequipAnimation(ItemStack from,
ItemStack to,
int slot) |
private static final org.apache.logging.log4j.Logger LOGGER
static final java.lang.ThreadLocal<RenderType> renderLayer
private static int skyX
private static int skyZ
private static boolean skyInit
private static int skyRGBMultiplier
public static java.lang.String forgeStatusLine
static int worldRenderPass
private static final Matrix4f flipX
private static final Matrix3f flipXNormal
private static int slotMainHand
public static java.lang.String getArmorTexture(Entity entity, ItemStack armor, java.lang.String _default, EquipmentSlotType slot, java.lang.String type)
public static boolean onDrawBlockHighlight(WorldRenderer context, ActiveRenderInfo info, RayTraceResult target, float partialTicks, MatrixStack matrix, IRenderTypeBuffer buffers)
@Deprecated public static void dispatchRenderLast(WorldRenderer context, MatrixStack mat, float partialTicks)
public static void dispatchRenderLast(WorldRenderer context, MatrixStack mat, float partialTicks, Matrix4f projectionMatrix, long finishTimeNano)
public static boolean renderSpecificFirstPersonHand(Hand hand, MatrixStack mat, IRenderTypeBuffer buffers, int light, float partialTicks, float interpPitch, float swingProgress, float equipProgress, ItemStack stack)
public static void onTextureStitchedPre(AtlasTexture map, java.util.Set<ResourceLocation> resourceLocations)
public static void onTextureStitchedPost(AtlasTexture map)
public static void onBlockColorsInit(BlockColors blockColors)
public static void onItemColorsInit(ItemColors itemColors, BlockColors blockColors)
public static void setRenderLayer(RenderType layer)
public static <A extends BipedModel<?>> A getArmorModel(LivingEntity entityLiving, ItemStack itemStack, EquipmentSlotType slot, A _default)
public static java.lang.String fixDomain(java.lang.String base, java.lang.String complex)
public static float getOffsetFOV(PlayerEntity entity, float fov)
public static double getFOVModifier(GameRenderer renderer, ActiveRenderInfo info, double renderPartialTicks, double fov)
public static void renderMainMenu(MainMenuScreen gui, FontRenderer font, int width, int height)
public static ISound playSound(SoundEngine manager, ISound sound)
public static int getWorldRenderPass()
public static void drawScreen(Screen screen, int mouseX, int mouseY, float partialTicks)
public static float getFogDensity(FogRenderer.FogType type, ActiveRenderInfo info, float partial, float density)
public static void onFogRender(FogRenderer.FogType type, ActiveRenderInfo info, float partial, float distance)
public static EntityViewRenderEvent.CameraSetup onCameraSetup(GameRenderer renderer, ActiveRenderInfo info, float partial)
public static void onModelBake(ModelManager modelManager, java.util.Map<ResourceLocation,IBakedModel> modelRegistry, ModelLoader modelLoader)
public static IBakedModel handleCameraTransforms(MatrixStack matrixStack, IBakedModel model, ItemCameraTransforms.TransformType cameraTransformType, boolean leftHandHackery)
public static void preDraw(VertexFormatElement.Usage attrType, VertexFormat format, int element, int stride, java.nio.ByteBuffer buffer)
public static void postDraw(VertexFormatElement.Usage attrType, VertexFormat format, int element, int stride, java.nio.ByteBuffer buffer)
public static int getColorIndex(VertexFormat fmt)
public static TextureAtlasSprite[] getFluidSprites(ILightReader world, BlockPos pos, IFluidState fluidStateIn)
public static void gatherFluidTextures(java.util.Set<Material> textures)
public static Material getBlockMaterial(ResourceLocation loc)
public static void fillNormal(int[] faceData, Direction facing)
private static Vector3f getVertexPos(int[] data, int vertex)
public static void loadEntityShader(Entity entity, GameRenderer entityRenderer)
public static boolean shouldCauseReequipAnimation(@Nonnull ItemStack from, @Nonnull ItemStack to, int slot)
public static RenderGameOverlayEvent.BossInfo bossBarRenderPre(MainWindow res, ClientBossInfo bossInfo, int x, int y, int increment)
public static void bossBarRenderPost(MainWindow res)
public static ScreenshotEvent onScreenshot(NativeImage image, java.io.File screenshotFile)
public static IBakedModel handlePerspective(IBakedModel model, ItemCameraTransforms.TransformType type, MatrixStack stack)
public static void onInputUpdate(PlayerEntity player, MovementInput movementInput)
public static void refreshResources(Minecraft mc, VanillaResourceType... types)
public static boolean onGuiMouseClickedPre(Screen guiScreen, double mouseX, double mouseY, int button)
public static boolean onGuiMouseClickedPost(Screen guiScreen, double mouseX, double mouseY, int button)
public static boolean onGuiMouseReleasedPre(Screen guiScreen, double mouseX, double mouseY, int button)
public static boolean onGuiMouseReleasedPost(Screen guiScreen, double mouseX, double mouseY, int button)
public static boolean onGuiMouseDragPre(Screen guiScreen, double mouseX, double mouseY, int mouseButton, double dragX, double dragY)
public static boolean onGuiMouseDragPost(Screen guiScreen, double mouseX, double mouseY, int mouseButton, double dragX, double dragY)
public static boolean onGuiMouseScrollPre(MouseHelper mouseHelper, Screen guiScreen, double scrollDelta)
public static boolean onGuiMouseScrollPost(MouseHelper mouseHelper, Screen guiScreen, double scrollDelta)
public static boolean onGuiKeyPressedPre(Screen guiScreen, int keyCode, int scanCode, int modifiers)
public static boolean onGuiKeyPressedPost(Screen guiScreen, int keyCode, int scanCode, int modifiers)
public static boolean onGuiKeyReleasedPre(Screen guiScreen, int keyCode, int scanCode, int modifiers)
public static boolean onGuiKeyReleasedPost(Screen guiScreen, int keyCode, int scanCode, int modifiers)
public static boolean onGuiCharTypedPre(Screen guiScreen, char codePoint, int modifiers)
public static boolean onGuiCharTypedPost(Screen guiScreen, char codePoint, int modifiers)
public static void onRecipesUpdated(RecipeManager mgr)
public static void invalidateLog4jThreadCache()
public static void fireMouseInput(int button, int action, int mods)
public static void fireKeyInput(int key, int scanCode, int action, int modifiers)
public static boolean onMouseScroll(MouseHelper mouseHelper, double scrollDelta)
public static boolean onRawMouseClicked(int button, int action, int mods)
public static InputEvent.ClickInputEvent onClickInput(int button, KeyBinding keyBinding, Hand hand)