
Lv.1
為什麼不給我點讚
签名:doing
在 求助 看一下咋修 中回复
Unexpected end of input 的英文意思是“意外的终止输入”。
这行报错一般都是代表我们浏览器在读取我们的js代码时,碰到了不可预知的错误,导致浏览器 无法进行下面的读取。
造成的原因可能是:
1、页面代码写的不规范啊……其中的某条语句,没有正常结束……
2、或者部分语句“‘’”双引号,单引号没有配对好,被转义了之类的……错误造成的……
3、是应该成双的符号输入错误,比如说“”,‘’,{},[].....
如果是你的网站,好好检查代码,不是你写的。那与你无关……这个网站的问题,去其他网站吧……不会报这个错
2022-09-14T19:26:41 点赞:0
在 求助!!!! 中回复
协作 imgsrc="https://static.cod喵/emotion/thunder_monkey/%E6%91%87%E6%A4%85%E5%AD%90240.gif"alt="emotion_雷电猴_摇椅子"
2022-09-17T11:28:37 点赞:0
在 各位巨佬,这代码有什么问题吗? 中回复
package com.mojang.blaze3d.matrix;
import com.google.common.collect.Queues;
import java.util.Deque;
import net.minecraft.util.Util;
import net.minecraft.util.math.MathHelper;
import net.minecraft.util.math.vector.Matrix3f;
import net.minecraft.util.math.vector.Matrix4f;
import net.minecraft.util.math.vector.Quaternion;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn;
@OnlyIn(Dist.CLIENT)
public class MatrixStack {
private final Deque<MatrixStack.Entry> stack = Util.make(Queues.newArrayDeque(), (p_2278喵_0_) -> {
Matrix4f matrix4f = new Matrix4f();
matrix4f.setIdentity();
Matrix3f matrix3f = new Matrix3f();
matrix3f.setIdentity();
p_2278喵_0_.add(new MatrixStack.Entry(matrix4f, matrix3f));
});
public void translate(double x, double y, double z) {
MatrixStack.Entry matrixstack$entry = this.stack.getLast();
matrixstack$entry.matrix.mul(Matrix4f.makeTranslate((float)x, (float)y, (float)z));
}
public void scale(float x, float y, float z) {
MatrixStack.Entry matrixstack$entry = this.stack.getLast();
matrixstack$entry.matrix.mul(Matrix4f.makeScale(x, y, z));
if (x == y && y == z) {
if (x > 0.0F) {
return;
}
matrixstack$entry.normal.mul(-1.0F);
}
float f = 1.0F / x;
float f1 = 1.0F / y;
float f2 = 1.0F / z;
float f3 = MathHelper.fastInvCubeRoot(f * f1 * f2);
matrixstack$entry.normal.mul(Matrix3f.makeScaleMatrix(f3 * f, f3 * f1, f3 * f2));
}
public void rotate(Quaternion quaternion) {
MatrixStack.Entry matrixstack$entry = this.stack.getLast();
matrixstack$entry.matrix.mul(quaternion);
matrixstack$entry.normal.mul(quaternion);
}
public void push() {
MatrixStack.Entry matrixstack$entry = this.stack.getLast();
this.stack.addLast(new MatrixStack.Entry(matrixstack$entry.matrix.copy(), matrixstack$entry.normal.copy()));
}
public void pop() {
this.stack.removeLast();
}
public MatrixStack.Entry getLast() {
return this.stack.getLast();
}
public boolean clear() {
return this.stack.size() == 1;
}
@OnlyIn(Dist.CLIENT)
public static final class Entry {
private final Matrix4f matrix;
private final Matrix3f normal;
private Entry(Matrix4f matrix, Matrix3f normal) {
this.matrix = matrix;
this.normal = normal;
}
public Matrix4f getMatrix() {
return this.matrix;
}
public Matrix3f getNormal() {
return this.normal;
}
}
}
2023-01-22T17:30:55 点赞:0
在 有人聊天吗 中回复
1、网上交友,需要考虑对自己学习和生活的影响,学会理性辨别、慎重选择; 2、虚拟世界的喵,带有很多不确实的因素,我们要有一定的自我保护意识; 3、将网上的朋友转化为现实中的朋友,需要慎重。
2023-01-25T08:53:58 点赞:0