Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- @SideOnly(Side.CLIENT)
- public ItemStack onItemRightClick(ItemStack itemstack, World world, EntityPlayer player) {
- Entity entity = Minecraft.getMinecraft().objectMouseOver.entityHit;
- if (entity instanceof EntityMarketPNJ) {
- EntityMarketPNJ entity2 = (EntityMarketPNJ) Minecraft.getMinecraft().objectMouseOver.entityHit;
- Minecraft.getMinecraft().displayGuiScreen(new GuiPNJ(entity2));
- }
- return itemstack;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement