Hi,
I just started learning sponge plugin developing, and im trying to get the lines of a sign from a player interact event.
I got this piece of code:
public class SignClickListener { @Listener public void onPlayerInteract(InteractBlockEvent event, @First Player player) { Optional<SignData> sign = event.getTargetBlock().getOrCreate(SignData.class); } }
but i get “inference variable T has incompatible bounds” error
if someone could provide a snippet i would be very thankful
Thanks for helping