mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Small changes (#2169)
This commit is contained in:
parent
9b39affd28
commit
9de0ebdba7
4 changed files with 3 additions and 11 deletions
|
@ -36,12 +36,8 @@ import org.geysermc.connector.network.session.GeyserSession;
|
|||
|
||||
public class OffhandCommand extends GeyserCommand {
|
||||
|
||||
private final GeyserConnector connector;
|
||||
|
||||
public OffhandCommand(GeyserConnector connector, String name, String description, String permission) {
|
||||
super(name, description, permission);
|
||||
|
||||
this.connector = connector;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -43,7 +43,7 @@ public class BootstrapDumpInfo {
|
|||
|
||||
@Getter
|
||||
@AllArgsConstructor
|
||||
public class PluginInfo {
|
||||
public static class PluginInfo {
|
||||
|
||||
public boolean enabled;
|
||||
public String name;
|
||||
|
@ -54,7 +54,7 @@ public class BootstrapDumpInfo {
|
|||
|
||||
@Getter
|
||||
@AllArgsConstructor
|
||||
public class ListenerInfo {
|
||||
public static class ListenerInfo {
|
||||
|
||||
public String ip;
|
||||
public int port;
|
||||
|
|
|
@ -81,7 +81,7 @@ public class DumpInfo {
|
|||
}
|
||||
|
||||
@Getter
|
||||
public class VersionInfo {
|
||||
public static class VersionInfo {
|
||||
|
||||
private final String name;
|
||||
private final String version;
|
||||
|
|
|
@ -62,10 +62,6 @@ public class BlockStorage {
|
|||
return (version.getId() << 1) | (runtime ? 1 : 0);
|
||||
}
|
||||
|
||||
private static BitArrayVersion getVersionFromHeader(byte header) {
|
||||
return BitArrayVersion.get(header >> 1, true);
|
||||
}
|
||||
|
||||
public int getFullBlock(int index) {
|
||||
return this.palette.getInt(this.bitArray.get(index));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue