Small formatting changes (opening braces on new line)

This commit is contained in:
MachineMuse committed 2013-09-05 18:46:05 -06:00
1 parent 7a0a7bf8e0
commit ad41dfaeaf
3 files changed
+15 -8

No files matched your search

@@ -326,11 +326,13 @@ public class ForgeHooksClient
}
}
public static boolean postMouseEvent() {
public static boolean postMouseEvent()
{
return MinecraftForge.EVENT_BUS.post(new MouseEvent());
}
public static float getOffsetFOV(EntityPlayerSP entity, float fov) {
public static float getOffsetFOV(EntityPlayerSP entity, float fov)
{
FOVUpdateEvent fovUpdateEvent = new FOVUpdateEvent(entity, fov);
MinecraftForge.EVENT_BUS.post(fovUpdateEvent);
return fovUpdateEvent.newfov;
@@ -339,9 +341,9 @@ public class ForgeHooksClient
/**
* Initialization of Forge Renderers.
*/
static {
static
{
FluidRegistry.renderIdFluid = RenderingRegistry.getNextAvailableRenderId();
RenderingRegistry.registerBlockHandler(RenderBlockFluid.instance);
}
}
@@ -8,11 +8,14 @@ import net.minecraftforge.event.Event;
* Author: MachineMuse (Claire Semple)
* Created: 6:07 PM, 9/5/13
*/
public class FOVUpdateEvent extends Event {
public class FOVUpdateEvent extends Event
{
public final EntityPlayerSP entity;
public final float fov;
public float newfov;
public FOVUpdateEvent(EntityPlayerSP entity, float fov) {
public FOVUpdateEvent(EntityPlayerSP entity, float fov)
{
this.entity = entity;
this.fov = fov;
this.newfov = fov;
@@ -9,7 +9,8 @@ import org.lwjgl.input.Mouse;
* Created: 2:46 PM, 9/4/13
*/
@Cancelable
public class MouseEvent extends Event {
public class MouseEvent extends Event
{
public final int x;
public final int y;
public final int dx;
@@ -19,7 +20,8 @@ public class MouseEvent extends Event {
public final boolean buttonstate;
public final long nanoseconds;
public MouseEvent() {
public MouseEvent()
{
this.x = Mouse.getEventX();
this.y = Mouse.getEventY();
this.dx = Mouse.getEventDX();