remove some java warnings

This commit is contained in:
Bixilon 2020-06-25 18:16:12 +02:00
parent a5de0576f7
commit 6a4f86c861
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4
9 changed files with 10 additions and 10 deletions

View File

@ -69,7 +69,7 @@ public enum Statistics {
STAT_ANIMALS_BRED(new Identifier("stat.animalsBred")),
STAT_PLAYER_KILLS(new Identifier("stat.playerKills")),
STAT_FISH_CAUGHT(new Identifier("stat.fishCaught")),
STAT_JUN_KFISHED(new Identifier("stat.junkFished")),
STAT_JUNK_FISHED(new Identifier("stat.junkFished")),
STAT_TREASURE_FISHED(new Identifier("stat.treasureFished")),
;

View File

@ -20,7 +20,7 @@ import java.util.UUID;
public class EntityProperty {
final double value;
HashMap<UUID, EntityPropertyModifier> modifiers = new HashMap<>();
final HashMap<UUID, EntityPropertyModifier> modifiers = new HashMap<>();
public EntityProperty(double value) {
this.value = value;

View File

@ -289,7 +289,7 @@ public class EntityMetaData {
int getId();
}
public class MetaDataSet {
public static class MetaDataSet {
final int index;
final Object data;

View File

@ -25,7 +25,7 @@ public class ScoreboardTeam {
String prefix;
String suffix;
PacketScoreboardTeams.ScoreboardFriendlyFire friendlyFire;
List<String> players;
final List<String> players;
public ScoreboardTeam(String name, String displayName, String prefix, String suffix, PacketScoreboardTeams.ScoreboardFriendlyFire friendlyFire, String[] players) {
this.name = name;

View File

@ -27,7 +27,7 @@ import java.util.UUID;
public class PacketEntityProperties implements ClientboundPacket {
int entityId;
HashMap<EntityPropertyKey, EntityProperty> properties = new HashMap<>();
final HashMap<EntityPropertyKey, EntityProperty> properties = new HashMap<>();
@Override

View File

@ -163,7 +163,7 @@ public class PacketMapData implements ClientboundPacket {
}
}
public class MapPlayerSet {
public static class MapPlayerSet {
final int type;
final MapPlayerDirection direction;
byte x;

View File

@ -30,7 +30,7 @@ import java.util.List;
import java.util.UUID;
public class PacketPlayerInfo implements ClientboundPacket {
List<PlayerInfoBulk> infos = new ArrayList<>();
final List<PlayerInfoBulk> infos = new ArrayList<>();
@Override

View File

@ -25,7 +25,7 @@ import java.util.HashMap;
import java.util.Map;
public abstract class Protocol implements ProtocolInterface {
static HashMap<Packets.Clientbound, Class<? extends ClientboundPacket>> packetClassMapping = new HashMap<>();
static final HashMap<Packets.Clientbound, Class<? extends ClientboundPacket>> packetClassMapping = new HashMap<>();
public final HashMap<Packets.Serverbound, Integer> serverboundPacketMapping;

View File

@ -26,9 +26,9 @@ public enum ProtocolVersion {
VERSION_1_14_4(new Protocol_1_14_4()),
VERSION_1_15_2(new Protocol_1_15_2());
public static TreeMap<Integer, ProtocolVersion> versionMapping = new TreeMap<>();
public static final TreeMap<Integer, ProtocolVersion> versionMapping = new TreeMap<>();
public static ProtocolVersion[] versionMappingArray;
public static final ProtocolVersion[] versionMappingArray;
static {
for (ProtocolVersion v : values()) {