some adapter refactoring

This commit is contained in:
Jesse Boyd
2019-11-19 04:40:40 +00:00
parent 751765cc01
commit 1b07846746
30 changed files with 1855 additions and 4779 deletions

View File

@ -77,7 +77,7 @@ public interface BlockRegistry {
/**
* Register all blocks
*/
default Collection<String> registerBlocks() {
default Collection<String> values() {
return Collections.emptyList();
}
}

View File

@ -22,6 +22,8 @@ package com.sk89q.worldedit.world.registry;
import com.sk89q.worldedit.world.item.ItemType;
import javax.annotation.Nullable;
import java.util.Collection;
import java.util.Collections;
public interface ItemRegistry {
@ -34,4 +36,10 @@ public interface ItemRegistry {
@Nullable
String getName(ItemType itemType);
/**
* Register all items
*/
default Collection<String> values() {
return Collections.emptyList();
}
}