fixups from errorprone
This commit is contained in:
1 parent
c6d48ab485
commit
e7671bd022
52 files changed
+473
-588
No files matched your search
@@ -149,9 +149,9 @@ public class ValueConversions
|
||||
|
||||
public static Level dimFromValue(Value dimensionValue, MinecraftServer server)
|
||||
{
|
||||
if (dimensionValue instanceof EntityValue)
|
||||
if (dimensionValue instanceof final EntityValue entityValue)
|
||||
{
|
||||
return ((EntityValue) dimensionValue).getEntity().level();
|
||||
return entityValue.getEntity().level();
|
||||
}
|
||||
else if (dimensionValue instanceof BlockValue bv)
|
||||
{
|
||||
@@ -175,7 +175,7 @@ public class ValueConversions
|
||||
ResourceKey<Level> dim = null;
|
||||
Identifier id = Identifier.parse(dimString);
|
||||
// not using RegistryKey.of since that one creates on check
|
||||
for (ResourceKey<Level> world : (server.levelKeys()))
|
||||
for (ResourceKey<Level> world : server.levelKeys())
|
||||
{
|
||||
if (id.equals(world.identifier()))
|
||||
{
|
||||
@@ -419,6 +419,7 @@ public class ValueConversions
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("DoubleBraceInitialization")
|
||||
private static final Int2ObjectMap<SlotParam> slotIdsToSlotParams = new Int2ObjectOpenHashMap<>()
|
||||
{{
|
||||
int n;
|
||||
|
||||
Reference in new issue
Block a user