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.

dommilosz

Members
  • Joined

  • Last visited

  1. Ok nevermind I forgot that last variable is color and cannot be random If anyone does it too: AbstractGui.fill(100,120,140,160,0xFFFFFFFF);
  2. I did this and there is nothing rendered (except "test"). Text rendered @Override public void render(int p_render_1_, int p_render_2_, float p_render_3_) { for(int i = 0; i < this.buttons.size(); ++i) { this.buttons.get(i).render(p_render_1_, p_render_2_, p_render_3_); } Minecraft mc = Minecraft.getInstance(); mc.fontRenderer.drawStringWithShadow("TEST",0,0,0xFFFFFF); AbstractGui.fill(100,100,100,100,100); }
  3. I have gui class: public class test_gui extends Screen I want to draw Rectangle or Line on it. I'm writing "TEST" to gui and it's works. Is there any method to render a Line|Rectangle on GUI like drawing string? Writing string code: @Override public void render(int p_render_1_, int p_render_2_, float p_render_3_) { Minecraft mc = Minecraft.getInstance(); mc.fontRenderer.drawStringWithShadow("TEST",0,0,0xFFFFFF); //text is displaying //function to draw a line }
  4. Thanks. I forgot about it. I didn't know that gson have functions to convert class to json and json to class.
  5. I want to my mod use com.fasterxml.jackson.core but "compile" doesn't work in build.gradle buildscript { repositories { maven { url = 'https://files.minecraftforge.net/maven' } jcenter() mavenCentral() } dependencies { classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3.+', changing: true compile 'com.fasterxml.jackson.core:jackson-databind:2.2.3' } } apply plugin: 'net.minecraftforge.gradle' // Only edit below this line, the above code adds and enables the necessary things for Forge to be setup. apply plugin: 'eclipse' apply plugin: 'maven-publish' //Rest of build.gradle from forge MDK
  6. No i doesn't appear without formatting. So how i'm supposed to format it? Is it supports coloring part of the message for one color and other parts for another?
  7. I'm doing almost the same.This very helped me https://github.com/TheAlphaEpsilon/Minecraft-Forge-1.15-Packet-Event/
  8. Everytime I create a string with it (to color the text) it creates also weird Â. msg variable seems to not be the same as I set it. In debugger after creation of this variable it's value changes -  appears. 1 step after declaration no method calls between String msg = "§2"+"Sending packets: ["+(i+1)+"/"+ TJPacket.packets.size()+"]"; Minecraft.getInstance().player.sendMessage(new StringTextComponent(msg)); §2Sending packets: [1/5] //in debugger and in minecraft chat It seems to only happen in forge envrioment. Debugger view
  9. debug-4.log Minecraft forge 1.12.2 mods: https://drive.google.com/drive/folders/1R8iIsHa6YQ_y85ED3Gmq9u35US3axYiX

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.