Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

MultiMote

Forge Modder
  • Joined

  • Last visited

Everything posted by MultiMote

  1. Removing TileEntity has no effect. You should remove the block. ...or find the way to prevent generation.
  2. Extend GuiButton and override function public void func_146113_a(SoundHandler p_146113_1_) { p_146113_1_.playSound(PositionedSoundRecord.func_147674_a(new ResourceLocation("gui.button.press"), 1.0F)); }
  3. For zoom you can use FOVUpdateEvent or set the value of private variable EntityRenderer.cameraZoom using reflection.
  4. MultiMote replied to a post in a topic in Modder Support
    Or k = ((EntityLivingBase) event.entity).getRNG().nextInt(4);
  5. Add default constructor to your TileEntity.
  6. You can use InventoryBasic
  7. Use events. @SideOnly(Side.CLIENT) @SubscribeEvent public void openGui(GuiOpenEvent event) { if (event.gui instanceof GuiMainMenu) { event.gui = new AwesomeMainMenu(); } }
  8. Use ScaledResolution ScaledResolution scaledresolution = new ScaledResolution(this.mc, this.mc.displayWidth, this.mc.displayHeight); int width = scaledresolution.getScaledWidth(); int height = scaledresolution.getScaledHeight();
  9. use RenderGameOverlayEvent.Post
  10. player.canCommandSenderUseCommand(2, "")
  11. Render with 0.0625F scale
  12. You can use BlockEvent.BreakEvent
  13. Don't use RenderHelper for ENTITY render type.
  14. Use any html color generator. This, for example.
  15. http://up42.ru/u/p/___________________2014-08-15_17_36_32.png[/img] http://up42.ru/u/p/___________________2014-08-15_17_36_40.png[/img] http://up42.ru/u/p/___________________2014-08-15_17_37_081.png[/img] http://up42.ru/u/p/___________________2014-08-15_17_37_39.png[/img] http://up42.ru/u/p/___________________2014-08-15_17_40_28.png[/img] http://up42.ru/u/p/___________________2014-08-15_17_40_47.png[/img] http://up42.ru/u/p/___________________2014-08-15_17_41_06.png[/img]
  16. player.canCommandSenderUseCommand(2, "")
  17. You don't need to cancel EntityConstructing event.
  18. Why receiveCanceled is true?
  19. Maybe something like this? protected void keyTyped(char par1, int par2) { this.text.textboxKeyTyped(par1, par2); if(!( par2== Keyboard.KEY_E && this.text.isFocused())) super.keyTyped(par1, par2); }
  20. I mean closing gui. For number-only textfield... um... you can look at my spinner code https://gist.github.com/MultiMote/479db07ec89ce675c5a6
  21. set text.setFocused(false) before exit
  22. private GuiTextField text; public void initGui() { this.text = new GuiTextField(this.fontRendererObj, this.width / 2 - 68, this.height/2-46, 137, 20); text.setMaxStringLength(23); text.setText("sample text"); this.text.setFocused(true); } protected void keyTyped(char par1, int par2) { super.keyTyped(par1, par2); this.text.textboxKeyTyped(par1, par2); } public void updateScreen() { super.updateScreen(); this.text.updateCursorCounter(); } public void drawScreen(int par1, int par2, float par3) { this.drawDefaultBackground(); this.text.drawTextBox(); super.drawScreen(par1, par2, par3); } protected void mouseClicked(int x, int y, int btn) { super.mouseClicked(x, y, btn); this.text.mouseClicked(x, y, btn); }
  23. EntityEvent.EntityConstructing or EntityJoinWorldEvent

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.