1.15.2 set/getData and alternatives?

Discussion in 'Spigot Plugin Development' started by SkyyDaork, Feb 13, 2020.

Thread Status:
Not open for further replies.
  1. I am attempting to use "setData" and "getData"

    Under Setdata I get:
    Code (Java):
    Example codeline:
    Bukkit.getScheduler().runTaskLater((Plugin)getInstance(), () -> hit.setData((byte)this.lastface), 20L);
    "The method setData(byte) is undefined for the type Block"

    getData:
    Code (Java):
    Example codeline:
    Button button = (Button)state.getData();
    "The method getData() is undefined for the type BlockState"

    Is there somewhere I can educate myself on what I can adapt these to?
     
  2. What?
     
    • Agree Agree x 3
Thread Status:
Not open for further replies.