How to use Data API 2.0

SpongeAPI uses Guava’s Optional (com.google.common.base.Optional) but you’ve imported Java 8’s Optional (java.util.Optional).
Simply change the import.

1 Like