-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
184 additions
and
204 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 12 additions & 14 deletions
26
src/main/java/net/moran/loratadine/event/impl/MotionEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,21 @@ | ||
package net.moran.loratadine.event.impl; | ||
|
||
import lombok.Generated; | ||
|
||
import net.moran.loratadine.event.Event; | ||
|
||
public class MotionEvent implements Event { | ||
private Event.Side side; | ||
private Side side; | ||
|
||
|
||
@Generated | ||
public Event.Side getSide() { | ||
return this.side; | ||
} | ||
public MotionEvent(Side side) { | ||
this.side = side; | ||
} | ||
|
||
@Generated | ||
public void setSide(Event.Side side) { | ||
this.side = side; | ||
} | ||
public Event.Side getSide() { | ||
return this.side; | ||
} | ||
|
||
@Generated | ||
public MotionEvent(Event.Side side) { | ||
this.side = side; | ||
} | ||
public void setSide(Side side) { | ||
this.side = side; | ||
} | ||
} |
28 changes: 14 additions & 14 deletions
28
src/main/java/net/moran/loratadine/event/impl/PacketEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
package net.moran.loratadine.event.impl; | ||
|
||
import lombok.Generated; | ||
|
||
import net.minecraft.network.protocol.Packet; | ||
import net.moran.loratadine.event.CancellableEvent; | ||
import net.moran.loratadine.event.Event; | ||
|
||
public class PacketEvent extends CancellableEvent { | ||
private final Event.Side side; | ||
private final Packet<?> packet; | ||
private final Side side; | ||
private final Packet<?> packet; | ||
|
||
@Generated | ||
public PacketEvent(Event.Side side, Packet<?> packet) { | ||
this.side = side; | ||
this.packet = packet; | ||
} | ||
|
||
@Generated | ||
public Event.Side getSide() { | ||
return this.side; | ||
} | ||
public PacketEvent(Side side, Packet<?> packet) { | ||
this.side = side; | ||
this.packet = packet; | ||
} | ||
|
||
|
||
public Event.Side getSide() { | ||
return this.side; | ||
} | ||
|
||
|
||
@Generated | ||
public Packet<?> getPacket() { | ||
public Packet<?> getPacket() { | ||
return this.packet; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.