Jump to content

RedEnergy

Members
  • Posts

    49
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

Recent Profile Visitors

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

RedEnergy's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. In log gradle says "(use -source 8 or higher to enable lambda expressions)" doesn't "-source 8" an argument? Where can i specify it?
  2. But lambdas a fully working at the development eclipse environment. This error happens only at build time
  3. Hello, i tried to build my mod using Forge Gradle but got this error. I tried to add these lines to build.gradle targetCompatibility = '1.8' sourceCompatibility = '1.8' , but it didn't help. Is there any way to solve this problem? My gradle version is: > gradlew --version ------------------------------------------------------------ Gradle 2.0 ------------------------------------------------------------ Build time: 2014-07-01 07:45:34 UTC Build number: none Revision: b6ead6fa452dfdadec484059191eb641d817226c Groovy: 2.3.3 Ant: Apache Ant(TM) version 1.9.3 compiled on December 23 2013 JVM: 1.8.0_45 (Oracle Corporation 25.45-b02) OS: Windows 7 6.1 amd64
  4. Hello, i am currently developing mod, which bring clans into the game and i need pass the clan's icon from server to client. This icon have a light weight (it's 16x16) and i think it will be good to keep them all in ./icons folder of the Minecraft directory. But i don't know to convert File to ResourceLocation to render it in the game. Can somebody help me with this?
  5. Thanks for reply guys, i will try to move in this way
  6. I need to get player with the specified name. If you look at the code, to which I have reference, you will see that i am storing all parties and players in it on the server side. If something changes in party (for example new player joined) i am sending SyncPartyPacket to all players in party, in which i am sending only player names. After receiving packet by client it must search for player with the given name in it's client world and form new client party. But if player doesn't loaded it doesn't exists in client party, so client cannot deserialize party successfuly.
  7. Because i need player's health and coordinates. And i don't want to use events for updating information on client
  8. Hello, i need to get EntityPlayer representation of player in the world. To do it i am using this line of code EntityPlayer player = Minecraft.getMinecraft().theWorld.getPlayerEntityByName(playerName); It works fine but only for players who already loaded in client world, if player far from client it will return null. Why do i need it? I am currently making party mod for and i need to sync players from party on server and client. Here is this part of code
  9. I need to add multiline textbox. I am using 1.6.2. For text rendering i have slick2d library. I made textbox but now my problem is with setting position of cursor to the coords of mouse click. Source code of textbox: http://pastebin.com/td7JGSaq . I know that i need to use #mouseClick method, but have no idea how to do it.
  10. Hello, i think it's enough said in the title of the topic, i need to add more color codes, i looked through EnumChatFormatting.class, but... there is no anything similar for what i need.
  11. Wow, didn't know that there different kinds of buses, thanks!
  12. Hello folks, i need disable tree growth for some saplings. I tried to do it using SaplingGrowTreeEvent but encountered with 2 problems. First: it's doesn't called and i can't catch it with event handler (When i grow tree my event method doesn't called), second: i can't get type of tree from this event. All code below. [spoiler=My event] @SubscribeEvent public void onTreeGrow(SaplingGrowTreeEvent e) { Core.instance.logger.log(Level.INFO, "Sapling event fired"); if(e.world.getBiomeGenForCoords(e.x, e.z) == BiomeGenBase.taiga)//Here i need to add conditional if type of tree not equals spruce { e.setResult(Result.DENY); } } [spoiler=Event handler registration] public EventHandler events = new EventHandler(); MinecraftForge.EVENT_BUS.register(this.events); FMLCommonHandler.instance().bus().register(this.events);
  13. Hello folks, i need to do another kind of item frame but at first tried to copy vanilla, i made item (http://pastebin.com/BfPEgSHz), entity (http://pastebin.com/PACcJdLF) and render for it (http://pastebin.com/dWBjQDvA). I registered all of it in main class (http://pastebin.com/62AzbtHk). But as a result i got: [14:38:47] [Client thread/ERROR]: ########## GL ERROR ########## [14:38:47] [Client thread/ERROR]: @ Post render [14:38:47] [Client thread/ERROR]: 1284: Stack underflow My frame doesn't renders and items a not displayed. What i am doing wrong?
  14. Ok, but i dont realise how can i replace only 1 method in class.
×
×
  • Create New...

Important Information

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