public class ForgeHooksClient
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private static class |
ForgeHooksClient.LightGatheringTransformer |
Modifier and Type | Field and Description |
---|---|
private static javax.vecmath.Matrix4f |
flipX |
private static ForgeHooksClient.LightGatheringTransformer |
lightGatherer |
private static java.nio.FloatBuffer |
matrixBuf |
(package private) static java.lang.ThreadLocal<BlockRenderLayer> |
renderLayer |
(package private) static int |
renderPass |
private static boolean |
skyInit |
private static int |
skyRGBMultiplier |
private static int |
skyX |
private static int |
skyZ |
private static int |
slotMainHand |
private static java.util.Map<org.apache.commons.lang3.tuple.Pair<Item,java.lang.Integer>,java.lang.Class<? extends TileEntity>> |
tileItemMap |
private static int |
updatescrollcounter |
(package private) static int |
worldRenderPass |
Constructor and Description |
---|
ForgeHooksClient() |
Modifier and Type | Method and Description |
---|---|
static java.util.Optional<TRSRTransformation> |
applyTransform(ItemTransformVec3f transform,
java.util.Optional<? extends IModelPart> part) |
static java.util.Optional<TRSRTransformation> |
applyTransform(javax.vecmath.Matrix4f matrix,
java.util.Optional<? extends IModelPart> part) |
static java.util.Optional<TRSRTransformation> |
applyTransform(ModelRotation rotation,
java.util.Optional<? extends IModelPart> part) |
static BlockFaceUV |
applyUVLock(BlockFaceUV blockFaceUV,
EnumFacing originalSide,
ITransformation rotation) |
static void |
bossBarRenderPost(ScaledResolution res) |
static RenderGameOverlayEvent.BossInfo |
bossBarRenderPre(ScaledResolution res,
BossInfoClient bossInfo,
int x,
int y,
int increment) |
static void |
dispatchRenderLast(RenderGlobal context,
float partialTicks) |
static void |
drawScreen(GuiScreen screen,
int mouseX,
int mouseY,
float partialTicks) |
private static void |
drawSegment(RenderItem ri,
int baseColor,
ItemStack stack,
java.util.List<BakedQuad> segment,
int bl,
int sl,
boolean shade,
boolean updateLighting,
boolean updateShading) |
(package private) static TextureManager |
engine() |
static void |
fillNormal(int[] faceData,
EnumFacing facing)
internal, relies on fixed format of FaceBakery
|
static java.lang.String |
fixDomain(java.lang.String base,
java.lang.String complex) |
static ModelBiped |
getArmorModel(EntityLivingBase entityLiving,
ItemStack itemStack,
EntityEquipmentSlot slot,
ModelBiped _default) |
static java.lang.String |
getArmorTexture(Entity entity,
ItemStack armor,
java.lang.String _default,
EntityEquipmentSlot slot,
java.lang.String type) |
static IBakedModel |
getDamageModel(IBakedModel ibakedmodel,
TextureAtlasSprite texture,
IBlockState state,
IBlockAccess world,
BlockPos pos) |
static float |
getFogDensity(EntityRenderer renderer,
Entity entity,
IBlockState state,
float partial,
float density) |
static float |
getFOVModifier(EntityRenderer renderer,
Entity entity,
IBlockState state,
double renderPartialTicks,
float fov) |
static java.lang.String |
getHorseArmorTexture(EntityHorse horse,
ItemStack armorStack) |
static javax.vecmath.Matrix4f |
getMatrix(ModelRotation modelRotation) |
static float |
getOffsetFOV(EntityPlayer entity,
float fov) |
static int |
getSkyBlendColour(World world,
BlockPos center) |
private static javax.vecmath.Vector3f |
getVertexPos(int[] data,
int vertex) |
static int |
getWorldRenderPass() |
static IBakedModel |
handleCameraTransforms(IBakedModel model,
ItemCameraTransforms.TransformType cameraTransformType,
boolean leftHandHackery) |
static org.apache.commons.lang3.tuple.Pair<? extends IBakedModel,javax.vecmath.Matrix4f> |
handlePerspective(IBakedModel model,
ItemCameraTransforms.TransformType type) |
static void |
invalidateLog4jThreadCache() |
static void |
loadEntityShader(Entity entity,
EntityRenderer entityRenderer) |
static void |
multiplyCurrentGlMatrix(javax.vecmath.Matrix4f matrix) |
static void |
onBlockColorsInit(BlockColors blockColors) |
static boolean |
onDrawBlockHighlight(RenderGlobal context,
EntityPlayer player,
RayTraceResult target,
int subID,
float partialTicks) |
static void |
onFogRender(EntityRenderer renderer,
Entity entity,
IBlockState state,
float partial,
int mode,
float distance) |
static void |
onInputUpdate(EntityPlayer player,
MovementInput movementInput) |
static void |
onItemColorsInit(ItemColors itemColors,
BlockColors blockColors) |
static void |
onModelBake(ModelManager modelManager,
IRegistry<ModelResourceLocation,IBakedModel> modelRegistry,
ModelLoader modelLoader) |
static ScreenshotEvent |
onScreenshot(java.awt.image.BufferedImage image,
java.io.File screenshotFile) |
static void |
onTextureStitchedPost(TextureMap map) |
static void |
onTextureStitchedPre(TextureMap map) |
static void |
orientBedCamera(IBlockAccess world,
BlockPos pos,
IBlockState state,
Entity entity) |
static ISound |
playSound(SoundManager manager,
ISound sound) |
static void |
postDraw(VertexFormatElement.EnumUsage attrType,
VertexFormat format,
int element,
int stride,
java.nio.ByteBuffer buffer) |
static boolean |
postMouseEvent() |
static void |
preDraw(VertexFormatElement.EnumUsage attrType,
VertexFormat format,
int element,
int stride,
java.nio.ByteBuffer buffer) |
static void |
putQuadColor(BufferBuilder renderer,
BakedQuad quad,
int color) |
static void |
registerTESRItemStack(Item item,
int metadata,
java.lang.Class<? extends TileEntity> TileClass)
Deprecated.
Will be removed as soon as possible. See
Item.getTileEntityItemStackRenderer() . |
static boolean |
renderFirstPersonHand(RenderGlobal context,
float partialTicks,
int renderPass) |
static void |
renderLitItem(RenderItem ri,
IBakedModel model,
int color,
ItemStack stack) |
static java.lang.String |
renderMainMenu(GuiMainMenu gui,
FontRenderer font,
int width,
int height,
java.lang.String splashText) |
static boolean |
renderSpecificFirstPersonHand(EnumHand hand,
float partialTicks,
float interpPitch,
float swingProgress,
float equipProgress,
ItemStack stack) |
static void |
renderTileItem(Item item,
int metadata) |
static void |
setRenderLayer(BlockRenderLayer layer) |
static void |
setRenderPass(int pass) |
static boolean |
shouldCauseBlockBreakReset(ItemStack from,
ItemStack to) |
static boolean |
shouldCauseReequipAnimation(ItemStack from,
ItemStack to,
int slot) |
static boolean |
shouldUseVanillaReloadableListener(IResourceManagerReloadListener listener) |
static void |
transform(org.lwjgl.util.vector.Vector3f vec,
javax.vecmath.Matrix4f m) |
static int renderPass
static final java.lang.ThreadLocal<BlockRenderLayer> renderLayer
private static int skyX
private static int skyZ
private static boolean skyInit
private static int skyRGBMultiplier
private static int updatescrollcounter
static int worldRenderPass
private static final javax.vecmath.Matrix4f flipX
private static final java.nio.FloatBuffer matrixBuf
private static java.util.Map<org.apache.commons.lang3.tuple.Pair<Item,java.lang.Integer>,java.lang.Class<? extends TileEntity>> tileItemMap
private static final ForgeHooksClient.LightGatheringTransformer lightGatherer
private static int slotMainHand
static TextureManager engine()
public static java.lang.String getArmorTexture(Entity entity, ItemStack armor, java.lang.String _default, EntityEquipmentSlot slot, java.lang.String type)
public static void orientBedCamera(IBlockAccess world, BlockPos pos, IBlockState state, Entity entity)
public static boolean onDrawBlockHighlight(RenderGlobal context, EntityPlayer player, RayTraceResult target, int subID, float partialTicks)
public static void dispatchRenderLast(RenderGlobal context, float partialTicks)
public static boolean renderFirstPersonHand(RenderGlobal context, float partialTicks, int renderPass)
public static boolean renderSpecificFirstPersonHand(EnumHand hand, float partialTicks, float interpPitch, float swingProgress, float equipProgress, ItemStack stack)
public static void onTextureStitchedPre(TextureMap map)
public static void onTextureStitchedPost(TextureMap map)
public static void onBlockColorsInit(BlockColors blockColors)
public static void onItemColorsInit(ItemColors itemColors, BlockColors blockColors)
public static void setRenderPass(int pass)
public static void setRenderLayer(BlockRenderLayer layer)
public static ModelBiped getArmorModel(EntityLivingBase entityLiving, ItemStack itemStack, EntityEquipmentSlot slot, ModelBiped _default)
public static java.lang.String fixDomain(java.lang.String base, java.lang.String complex)
public static boolean postMouseEvent()
public static float getOffsetFOV(EntityPlayer entity, float fov)
public static float getFOVModifier(EntityRenderer renderer, Entity entity, IBlockState state, double renderPartialTicks, float fov)
public static java.lang.String renderMainMenu(GuiMainMenu gui, FontRenderer font, int width, int height, java.lang.String splashText)
public static ISound playSound(SoundManager manager, ISound sound)
public static int getWorldRenderPass()
public static void drawScreen(GuiScreen screen, int mouseX, int mouseY, float partialTicks)
public static float getFogDensity(EntityRenderer renderer, Entity entity, IBlockState state, float partial, float density)
public static void onFogRender(EntityRenderer renderer, Entity entity, IBlockState state, float partial, int mode, float distance)
public static void onModelBake(ModelManager modelManager, IRegistry<ModelResourceLocation,IBakedModel> modelRegistry, ModelLoader modelLoader)
public static IBakedModel handleCameraTransforms(IBakedModel model, ItemCameraTransforms.TransformType cameraTransformType, boolean leftHandHackery)
public static void multiplyCurrentGlMatrix(javax.vecmath.Matrix4f matrix)
public static void preDraw(VertexFormatElement.EnumUsage attrType, VertexFormat format, int element, int stride, java.nio.ByteBuffer buffer)
public static void postDraw(VertexFormatElement.EnumUsage attrType, VertexFormat format, int element, int stride, java.nio.ByteBuffer buffer)
public static void transform(org.lwjgl.util.vector.Vector3f vec, javax.vecmath.Matrix4f m)
public static javax.vecmath.Matrix4f getMatrix(ModelRotation modelRotation)
public static void putQuadColor(BufferBuilder renderer, BakedQuad quad, int color)
public static void renderTileItem(Item item, int metadata)
@Deprecated public static void registerTESRItemStack(Item item, int metadata, java.lang.Class<? extends TileEntity> TileClass)
Item.getTileEntityItemStackRenderer()
.public static void renderLitItem(RenderItem ri, IBakedModel model, int color, ItemStack stack)
private static void drawSegment(RenderItem ri, int baseColor, ItemStack stack, java.util.List<BakedQuad> segment, int bl, int sl, boolean shade, boolean updateLighting, boolean updateShading)
public static void fillNormal(int[] faceData, EnumFacing facing)
private static javax.vecmath.Vector3f getVertexPos(int[] data, int vertex)
public static java.util.Optional<TRSRTransformation> applyTransform(ItemTransformVec3f transform, java.util.Optional<? extends IModelPart> part)
public static java.util.Optional<TRSRTransformation> applyTransform(ModelRotation rotation, java.util.Optional<? extends IModelPart> part)
public static java.util.Optional<TRSRTransformation> applyTransform(javax.vecmath.Matrix4f matrix, java.util.Optional<? extends IModelPart> part)
public static void loadEntityShader(Entity entity, EntityRenderer entityRenderer)
public static IBakedModel getDamageModel(IBakedModel ibakedmodel, TextureAtlasSprite texture, IBlockState state, IBlockAccess world, BlockPos pos)
public static boolean shouldCauseReequipAnimation(@Nonnull ItemStack from, @Nonnull ItemStack to, int slot)
public static boolean shouldCauseBlockBreakReset(@Nonnull ItemStack from, @Nonnull ItemStack to)
public static BlockFaceUV applyUVLock(BlockFaceUV blockFaceUV, EnumFacing originalSide, ITransformation rotation)
public static RenderGameOverlayEvent.BossInfo bossBarRenderPre(ScaledResolution res, BossInfoClient bossInfo, int x, int y, int increment)
public static void bossBarRenderPost(ScaledResolution res)
public static ScreenshotEvent onScreenshot(java.awt.image.BufferedImage image, java.io.File screenshotFile)
public static org.apache.commons.lang3.tuple.Pair<? extends IBakedModel,javax.vecmath.Matrix4f> handlePerspective(IBakedModel model, ItemCameraTransforms.TransformType type)
public static void onInputUpdate(EntityPlayer player, MovementInput movementInput)
public static java.lang.String getHorseArmorTexture(EntityHorse horse, ItemStack armorStack)
public static boolean shouldUseVanillaReloadableListener(IResourceManagerReloadListener listener)
public static void invalidateLog4jThreadCache()