Properties can have the same string name

Make map of all properties string against list
This commit is contained in:
dordsor21 2021-09-21 18:34:31 +01:00
parent b8ec4be95c
commit e750e014ab
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -64,6 +64,7 @@ import org.bukkit.inventory.ItemStack;
import javax.annotation.Nullable;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.OptionalInt;
import java.util.Set;
@ -335,7 +336,7 @@ public interface BukkitImplAdapter<T> extends IBukkitAdapter {
return new NMSRelighterFactory(); // TODO implement in adapters instead
}
default Map<String, ? extends Property<?>> getAllProperties() {
default Map<String, List<Property<?>>> getAllProperties() {
return Collections.emptyMap();
}
//FAWE end