Jump to content
Search In
  • More options...
Find results that contain...
Find results in...


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About dommilosz

  • Rank
    Tree Puncher

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  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. appl
  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
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.