Make ColorHandlers wildcard, fix #114

Signed-off-by: shedaniel <daniel@shedaniel.me>
This commit is contained in:
shedaniel
2021-07-01 03:00:40 +08:00
parent f39c94aec3
commit 790dafb0b5
3 changed files with 14 additions and 14 deletions

View File

@@ -55,13 +55,13 @@ public final class ColorHandlers {
@SafeVarargs
@ExpectPlatform
public static void registerItemColors(ItemColor color, Supplier<ItemLike>... items) {
public static void registerItemColors(ItemColor color, Supplier<? extends ItemLike>... items) {
throw new AssertionError();
}
@SafeVarargs
@ExpectPlatform
public static void registerBlockColors(BlockColor color, Supplier<Block>... blocks) {
public static void registerBlockColors(BlockColor color, Supplier<? extends Block>... blocks) {
throw new AssertionError();
}
}