#spongedev on EsperNet

Topic: Docs: https://docs.spongepowered.org | GitHub: https://github.com/SpongePowered | Rules: https://docs.spongepowered.org/en/about/rules.html | Code Style: https://git.io/spongecodestyle | Gradle help in #ForgeGradle | Javadocs: https://jd.spongepowered.org | SOS XIV: July 15th @ 21:00 UTC

Topic set by: Zidane on June 29, 2017 05:51:18 pm

Last activity:


Latest logs
Topic -- Topic: Docs: https://docs.spongepowered.org | GitHub: https://github.com/SpongePowered | Rules: https://docs.spongepowered.org/en/about/rules.html | Code Style: https://git.io/spongecodestyle | Gradle help in #ForgeGradle | Javadocs: https://jd.spongepowered.org | SOS XIV: July 15th @ 21:00 UTC
Topic -- Topic set on June 29, 2017 05:51:18 pm by Zidane
15:50:28 Spongie <b​r​u​n​y​m​a​n​> Guys, how do we get the inventory slot index in API 7? This no longer works it returns empty:
15:50:37 Spongie <b​r​u​n​y​m​a​n​> SlotTransaction s = e.getTransactions().get(0); SlotIndex si = s.getSlot().getProperty(SlotIndex.class, "slotindex").get();
16:14:55 Spongie <C​y​b​e​r​m​a​x​k​e​> Can you try container.getProperty(s.getSlot(), SlotIndex.class, "slotindex").get()?
16:15:08 Spongie <C​y​b​e​r​m​a​x​k​e​> However, your option should work as well
17:29:38 Spongie <f​e​l​i​x​o​i​> what do you think about this? https://gyazo.com/d543508ec756a8d712d0b8b8bba7ae86

View today's full logView tailView statistics