Fixed some warnings

This commit is contained in:
drcrazy 2021-12-19 04:19:46 +03:00
parent a0d827fa3b
commit 774d42d944
6 changed files with 6 additions and 18 deletions

View file

@ -478,9 +478,7 @@ public class TRContent {
}
private List<Block> allBlocks() {
return Collections.unmodifiableList(Arrays.asList(
block, stairsBlock, slabBlock, wallBlock
));
return List.of(block, stairsBlock, slabBlock, wallBlock);
}
}
@ -511,7 +509,7 @@ public class TRContent {
public static ItemConvertible[] getCasings() {
return Arrays.stream(MachineBlocks.values())
.map((Function<MachineBlocks, ItemConvertible>) machineBlocks -> machineBlocks.casing::asItem)
.map((Function<MachineBlocks, ItemConvertible>) machineBlocks -> machineBlocks.casing)
.toArray(ItemConvertible[]::new);
}
}