Jump to content

Minsoo

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by Minsoo

  1. I am a beginner. It could be a stupid question. I'd like to get the displayname of the chest that is open in GuiOpenEvent. GuiChest does not have getDisplayName. @SideOnly(Side.CLIENT) @SubscribeEvent(priority= EventPriority.NORMAL, receiveCanceled=true) public void guiOpenEvent(GuiOpenEvent event) { if (event.getGui() instanceof GuiChest) { GuiChest guiChest = (GuiChest) event.getGui(); String displayName = guiChest.getDisplayName(); //Cannot resolve method 'getDisplayName' in 'GuiChest' } }
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.