-
Автор темы
- #1
Перед прочтением основного контента ниже, пожалуйста, обратите внимание на обновление внутри секции Майна на нашем форуме. У нас появились:
- бесплатные читы для Майнкрафт — любое использование на свой страх и риск;
- маркетплейс Майнкрафт — абсолютно любая коммерция, связанная с игрой, за исключением продажи читов (аккаунты, предоставления услуг, поиск кодеров читов и так далее);
- приватные читы для Minecraft — в этом разделе только платные хаки для игры, покупайте группу "Продавец" и выставляйте на продажу свой софт;
- обсуждения и гайды — всё тот же раздел с вопросами, но теперь модернизированный: поиск нужных хаков, пати с игроками-читерами и другая полезная информация.
Спасибо!
всё рассписано в теме
CrashLog:
code:
CrashLog:
CrashLog:
---- Minecraft Crash Report ----
// Don't be sad, have a hug! <3
Time: 15.06.2024, 21:56
Description: Initializing game
java.lang.ClassCastException: class com.google.gson.JsonNull cannot be cast to class com.google.gson.JsonObject (com.google.gson.JsonNull and com.google.gson.JsonObject are in unnamed module of loader 'app')
at im.expensive.config.ConfigStorage.loadConfiguration(ConfigStorage.java:77)
at im.expensive.config.ConfigStorage.setupFolder(ConfigStorage.java:35)
at im.expensive.config.ConfigStorage.init(ConfigStorage.java:28)
at im.expensive.Expensive.clientLoad(Expensive.java:185)
at im.expensive.Expensive.<init>(Expensive.java:147)
at net.minecraft.client.Minecraft.<init>(Minecraft.java:430)
at net.minecraft.client.main.Main.main(Main.java:156)
at Start.main(Start.java:11)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Thread: Render thread
Stacktrace:
at im.expensive.config.ConfigStorage.loadConfiguration(ConfigStorage.java:77)
at im.expensive.config.ConfigStorage.setupFolder(ConfigStorage.java:35)
at im.expensive.config.ConfigStorage.init(ConfigStorage.java:28)
at im.expensive.Expensive.clientLoad(Expensive.java:185)
at im.expensive.Expensive.<init>(Expensive.java:147)
at net.minecraft.client.Minecraft.<init>(Minecraft.java:430)
-- Initialization --
Details:
Stacktrace:
at net.minecraft.client.main.Main.main(Main.java:156)
at Start.main(Start.java:11)
-- System Details --
Details:
Minecraft Version: 1.16.5
Minecraft Version ID: 1.16.5
Operating System: Windows 11 (amd64) version 10.0
Java Version: 17.0.10, Amazon.com Inc.
Java VM Version: OpenJDK 64-Bit Server VM (mixed mode, sharing), Amazon.com Inc.
Memory: 221966696 bytes (211 MB) / 335544320 bytes (320 MB) up to 4271898624 bytes (4074 MB)
CPUs: 4
JVM Flags: 0 total;
Launched Version: mcp
Backend library: LWJGL version 3.2.2 build 10
Backend API: NVIDIA GeForce GTX 1080/PCIe/SSE2 GL version 4.6.0 NVIDIA 546.29, NVIDIA Corporation
GL Caps: Using framebuffer using OpenGL 3.0
Using VBOs: Yes
Is Modded: Very likely; Jar signature invalidated
Type: Client (map_client.txt)
CPU: 4x Intel(R) Core(TM) i5-4460 CPU @ 3.20GHz
OptiFine Version: OptiFine_1.16.5_HD_U_G8
OptiFine Build: ~~NULL~~
Render Distance Chunks: 2
Mipmaps: 4
Anisotropic Filtering: 1
Antialiasing: 0
Multitexture: false
Shaders: null
OpenGlVersion: 4.6.0 NVIDIA 546.29
OpenGlRenderer: NVIDIA GeForce GTX 1080/PCIe/SSE2
OpenGlVendor: NVIDIA Corporation
CpuCount: 4
NotificationManager:
package im.expensive.ui;
import com.mojang.blaze3d.matrix.MatrixStack;
import im.expensive.utils.animations.Animation;
import im.expensive.utils.animations.Direction;
import im.expensive.utils.animations.impl.EaseBackIn;
import im.expensive.utils.animations.impl.EaseInOutQuad;
import im.expensive.utils.client.IMinecraft;
import im.expensive.utils.math.MathUtil;
import im.expensive.utils.render.ColorUtils;
import im.expensive.utils.render.DisplayUtils;
import im.expensive.utils.render.KawaseBlur;
import im.expensive.utils.render.font.Fonts;
import java.lang.management.ManagementFactory;
import java.util.Iterator;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.vector.Vector4f;
public class NotificationManager {
private final CopyOnWriteArrayList<Notification> notifications = new CopyOnWriteArrayList();
private MathUtil AnimationMath;
private ImageType imageType;
boolean state;
public void add(String text, String content, int time, ImageType imageType) {
this.notifications.add(new Notification(text, content, time, imageType));
}
public void draw(MatrixStack stack) {
int yOffset = 0;
for (Notification notification : this.notifications) {
if (System.currentTimeMillis() - notification.getTime() <= (long)notification.time2 * 1000L - 300L) {
notification.yAnimation.setDirection(Direction.FORWARDS);
}
notification.alpha = (float)notification.animation.getOutput();
if (System.currentTimeMillis() - notification.getTime() > (long)notification.time2 * 1000L) {
notification.yAnimation.setDirection(Direction.BACKWARDS);
}
if (notification.yAnimation.finished(Direction.BACKWARDS)) {
this.notifications.remove(notification);
continue;
}
float x = (float)IMinecraft.mc.getMainWindow().scaledWidth() - (Fonts.sfMedium.getWidth(notification.getText(), 7.0f) + 8.0f) - 10.0f;
float y = IMinecraft.mc.getMainWindow().scaledHeight() - 40;
notification.yAnimation.setEndPoint(yOffset);
notification.yAnimation.setDuration(500);
notification.setX(x);
notification.setY(MathUtil.fast(notification.getY(), y -= (float)((double)notification.draw(stack) * notification.yAnimation.getOutput() + 3.0), 15.0f));
++yOffset;
}
}
private class Notification {
private float x = 0.0f;
private float y = IMinecraft.mc.getMainWindow().scaledHeight() + 24;
private String text;
private String content;
private long time = System.currentTimeMillis();
public Animation animation = new EaseInOutQuad(500, 1.0, Direction.FORWARDS);
public Animation yAnimation = new EaseBackIn(500, 1.0, 1.0f);
private ImageType imageType;
float alpha;
int time2 = 3;
private boolean isState;
private boolean state;
public Notification(String text, String content, int time, ImageType imageType) {
this.text = text;
this.content = content;
this.time2 = time;
this.imageType = imageType;
}
public float draw(MatrixStack stack) {
float width = Fonts.sfMedium.getWidth(this.text, 7.0f) + 8.0f;
DisplayUtils.drawRoundedRect(this.x - 427.0f + 50.0f, this.y - 25.0f, width + 27.0f, 13.0f, 3.0f, ColorUtils.rgb(23, 22, 22));
DisplayUtils.drawShadow(this.x - 427.0f + 50.0f, this.y - 25.0f, width + 27.0f, 13.0f, 3, ColorUtils.rgb(23, 22, 22));
if (this.imageType == ImageType.FIRST_PHOTO) {
ResourceLocation key = new ResourceLocation("expensive/images/net.png");
DisplayUtils.drawImage(key, this.x - 424.0f + 50.0f, this.y - 26.5f, 16.0f, 16.0f, ColorUtils.rgb(255, 0, 0));
} else {
ResourceLocation key1 = new ResourceLocation("expensive/images/gal.png");
DisplayUtils.drawImage(key1, this.x - 424.0f + 50.0f, this.y - 26.5f, 16.0f, 16.0f, ColorUtils.rgb(0, 255, 0));
}
Fonts.montserrat.drawText(stack, this.text, this.x - 407.0f + 50.0f, this.y - 22.0f, -1, 7.0f, 0.05f);
int enabledColor = ColorUtils.rgba(0, 255, 0, 255);
int disabledColor = ColorUtils.rgba(255, 0, 0, 255);
int contentColor = this.state ? enabledColor : disabledColor;
Fonts.sfMedium.drawText(stack, this.content, this.x, this.y, ColorUtils.rgb(0, 255, 0), 4.0f, 0.05f);
return 24.0f;
}
public float getX() {
return this.x;
}
public float getY() {
return this.y;
}
public void setX(float x) {
this.x = x;
}
public void setY(float y) {
this.y = y;
}
public String getText() {
return this.text;
}
public String getContent() {
return this.content;
}
public long getTime() {
return this.time;
}
}
public static enum ImageType {
FIRST_PHOTO,
SECOND_PHOTO;
}
}
IngameGui:
WermetistPidor.NOTIFICATION_MANAGER.draw(matrixStack);
на 426 строчку это вставьте что это было у вас так:
Вложения
-
38.5 KB Просмотры: 15