forked from RepoMirrors/kami-blue
fix comment style
This commit is contained in:
parent
b61fef6b0e
commit
d0087cebf4
|
@ -44,7 +44,7 @@ public class SignBookCommand extends Command {
|
|||
String futureTitle = String.join(" ", toAdd);
|
||||
futureTitle = futureTitle.replaceAll("&", Character.toString((char)c));
|
||||
futureTitle = futureTitle.replaceAll("#n", "\n");
|
||||
futureTitle = futureTitle.replaceAll("null", ""); //Random extra null added sometimes
|
||||
futureTitle = futureTitle.replaceAll("null", ""); // Random extra null added sometimes
|
||||
|
||||
if (futureTitle.length() > 31) {
|
||||
Command.sendChatMessage("Title cannot be over 31 characters.");
|
||||
|
|
|
@ -13,7 +13,7 @@ public class Framebuffer {
|
|||
private int framebufferTexture;
|
||||
private int framebufferDepthbuffer;
|
||||
|
||||
public Framebuffer() {//call when loading the game
|
||||
public Framebuffer() {// call when loading the game
|
||||
this(Display.getWidth(), Display.getHeight());
|
||||
}
|
||||
|
||||
|
@ -23,22 +23,22 @@ public class Framebuffer {
|
|||
initialiseFramebuffer();
|
||||
}
|
||||
|
||||
public void cleanUp() {//call when closing the game
|
||||
public void cleanUp() {// call when closing the game
|
||||
GL30.glDeleteFramebuffers(framebufferID);
|
||||
GL11.glDeleteTextures(framebufferTexture);
|
||||
GL30.glDeleteRenderbuffers(framebufferDepthbuffer);
|
||||
}
|
||||
|
||||
public void bindFrameBuffer() {//call before rendering to this FBO
|
||||
public void bindFrameBuffer() {// call before rendering to this FBO
|
||||
bindFrameBuffer(framebufferID, WIDTH, HEIGHT);
|
||||
}
|
||||
|
||||
public void unbindFramebuffer() {//call to switch to default frame buffer
|
||||
public void unbindFramebuffer() {// call to switch to default frame buffer
|
||||
GL30.glBindFramebuffer(GL30.GL_FRAMEBUFFER, 0);
|
||||
GL11.glViewport(0, 0, Display.getWidth(), Display.getHeight());
|
||||
}
|
||||
|
||||
public int getFramebufferTexture() {//get the resulting texture
|
||||
public int getFramebufferTexture() {// get the resulting texture
|
||||
return framebufferTexture;
|
||||
}
|
||||
|
||||
|
@ -50,18 +50,18 @@ public class Framebuffer {
|
|||
}
|
||||
|
||||
private void bindFrameBuffer(int frameBuffer, int width, int height) {
|
||||
GL11.glBindTexture(GL11.GL_TEXTURE_2D, 0);//To make sure the texture isn't bound
|
||||
GL11.glBindTexture(GL11.GL_TEXTURE_2D, 0);// To make sure the texture isn't bound
|
||||
GL30.glBindFramebuffer(GL30.GL_FRAMEBUFFER, frameBuffer);
|
||||
GL11.glViewport(0, 0, width, height);
|
||||
}
|
||||
|
||||
private int createFrameBuffer() {
|
||||
int frameBuffer = GL30.glGenFramebuffers();
|
||||
//generate name for frame buffer
|
||||
// generate name for frame buffer
|
||||
GL30.glBindFramebuffer(GL30.GL_FRAMEBUFFER, frameBuffer);
|
||||
//create the framebuffer
|
||||
// create the framebuffer
|
||||
GL11.glDrawBuffer(GL30.GL_COLOR_ATTACHMENT0);
|
||||
//indicate that we will always render to colour attachment 0
|
||||
// indicate that we will always render to colour attachment 0
|
||||
return frameBuffer;
|
||||
}
|
||||
|
||||
|
|
|
@ -47,8 +47,8 @@ public class BetterBeacons extends Module {
|
|||
doCancelPacket = false;
|
||||
|
||||
PacketBuffer data = ((CPacketCustomPayload) event.getPacket()).getBufferData();
|
||||
int i1 = data.readInt(); //primary
|
||||
int k1 = data.readInt(); //secondary
|
||||
int i1 = data.readInt(); // primary
|
||||
int k1 = data.readInt(); // secondary
|
||||
|
||||
event.cancel();
|
||||
|
||||
|
|
|
@ -352,8 +352,8 @@ public class ColourUtils {
|
|||
}
|
||||
|
||||
public static final int changeAlpha(int origColor, int userInputedAlpha) {
|
||||
origColor = origColor & 0x00ffffff; //drop the previous alpha value
|
||||
return (userInputedAlpha << 24) | origColor; //add the one the user inputted
|
||||
origColor = origColor & 0x00ffffff; // drop the previous alpha value
|
||||
return (userInputedAlpha << 24) | origColor; // add the one the user inputted
|
||||
}
|
||||
|
||||
}
|
|
@ -156,7 +156,7 @@ public class EntityUtil {
|
|||
double pitch = Math.asin(diry);
|
||||
double yaw = Math.atan2(dirz, dirx);
|
||||
|
||||
//to degree
|
||||
// to degree
|
||||
pitch = pitch * 180.0d / Math.PI;
|
||||
yaw = yaw * 180.0d / Math.PI;
|
||||
|
||||
|
|
Loading…
Reference in New Issue