mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-12 08:18:35 +00:00
Remove all raw usages of BSH, improve API generics
This commit is contained in:
@ -381,7 +381,7 @@ public class BukkitAdapter {
|
||||
* @param block The WorldEdit BlockStateHolder
|
||||
* @return The Bukkit BlockData
|
||||
*/
|
||||
public static BlockData adapt(BlockStateHolder block) {
|
||||
public static <B extends BlockStateHolder<B>> BlockData adapt(B block) {
|
||||
checkNotNull(block);
|
||||
return blockDataCache.computeIfAbsent(block.getAsString(), new Function<String, BlockData>() {
|
||||
@Nullable
|
||||
|
Reference in New Issue
Block a user