Port settings file
This commit is contained in:
parent
bd11a8eb10
commit
c18ef4d312
Binary file not shown.
Binary file not shown.
|
@ -1,34 +0,0 @@
|
||||||
package dev.resent.event.impl;
|
|
||||||
|
|
||||||
import net.kyori.event.Cancellable;
|
|
||||||
import net.minecraft.src.Packet;
|
|
||||||
|
|
||||||
public class PacketEvent extends Event implements Cancellable {
|
|
||||||
private boolean cancelled;
|
|
||||||
private final Packet packet;
|
|
||||||
private final boolean serverBound;
|
|
||||||
|
|
||||||
public PacketEvent(Packet packet, boolean serverBound) {
|
|
||||||
this.packet = packet;
|
|
||||||
this.serverBound = serverBound;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Packet getPacket() {
|
|
||||||
return this.packet;
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean isServerBound() {
|
|
||||||
return this.serverBound;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean isCancelled() {
|
|
||||||
return cancelled;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void setCancelled(boolean cancelled) {
|
|
||||||
this.cancelled = cancelled;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,6 +1,6 @@
|
||||||
package dev.resent.setting;
|
package dev.resent.setting;
|
||||||
|
|
||||||
import net.minecraft.src.MathHelper;
|
import net.minecraft.util.MathHelper;
|
||||||
|
|
||||||
public class NumberSetting extends Setting {
|
public class NumberSetting extends Setting {
|
||||||
public float value;
|
public float value;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user