Port settings file

This commit is contained in:
ThisIsALegitUsername 2022-12-27 21:48:57 +00:00
parent bd11a8eb10
commit c18ef4d312
4 changed files with 1 additions and 35 deletions

View File

@ -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;
}
}

View File

@ -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;