Everything posted by Alesimula
-
Logo for my mod [DIMENSION] needed
i need a new logo for my mod (and eventually new photos). i have never been a good logo maker and screenshotter i can't offer you anithing than giving you credits and my gratitude, but if you are interested anyway please tell me, and if you want give me your skype thanx -greenapple
-
How to add a new invisible icon
with a little bit effort if worked: public boolean shouldSideBeRendered(IBlockAccess blockAccess, int x, int y, int z, int side) { if (side == 0) { return (renderDownSide? true : renderSecond); } else if (side == 1) { return (renderUpSide? true : renderSecond); } else { Block nearBlock = blockAccess.getBlock(x, y, z); if (nearBlock == this) { if (renderUpBase && (blockAccess.getBlockMetadata(x, y, z) == 3 || blockAccess.getBlockMetadata(x, y, z) == 1)) { return !renderUpBase; } else if (renderDownBase && (blockAccess.getBlockMetadata(x, y, z) == 3 || blockAccess.getBlockMetadata(x, y, z) == 2)) { return !renderDownBase; } } else return true; } return true; }
-
How to add a new invisible icon
nope, the fact is i have a ISimpleBlockRenderingHandler, and some faces in the same side have to render
-
How to add a new invisible icon
I'm creating a block and i want a side to be invisible, how to make an invisible icon? BUT without creating a new png file, is there a premade invisible icon or a way to make it?
-
[1.7.2] Chunkprovider: top block and filler block not spawning
After days of tryes and failures, i finally solved the problem and realised i'm a dumb
-
[1.7.2] Chunkprovider: top block and filler block not spawning
So, i'm updating a dimension to 1.7.2 but when i enter in my dimension, my custom grass and dirt blocks anre not spawning; below i'll post the chunkprovider and biome ChunkProviderGlacia http://www.sourcepod.com/ooowcc24-22453 BiomeGenGlacia: http://www.sourcepod.com/efwklw10-22454
-
Compiled Mod Causes Error [SOLVED -> never use func_...!]
Weel, never use func_ is not correct a correct way to do thing, you have just check that the func_ or field_ you are using is also in the class you extend or implement. BECAUSE: it could be a func that in a precedent version had its doebfuscation name, when in the new version got renamed, so it would work anly after reobfuscating, but, if you have the code that corresponds to that method but with its name given in the new version, then in your obfuscated class there will be two methods with the same name. JUST TO SAY TO PEOPLE: YES, YOU CAN USE func_ AND field_
-
[1.7.2] Block has to be air or null??
I want to check if there there isn't a block in specific coodinates Block block = world.getBlock(x, y, z); so have i to say if (block == null).... or if(block == Blocks.air).... ?? or is it the same?
-
[1.7.2] Should a PlayerEvent (ItemPickupEvent) be registered in client side only
What about TickEvents?
-
[1.7.2] Should a PlayerEvent (ItemPickupEvent) be registered in client side only
I'm adding a new ItemPickupEvent to take an achievement when an item is picked up, and i think, but not sure, it has to be registered only on my client proxy am i right?
-
getDeclaredField NoSuchFieldException (1.7.2)
what's that name? also are you sure it has to have the obfuscated name also in forge (eclipse) ?
-
getDeclaredField NoSuchFieldException (1.7.2)
Hi i'm using gradle forge for 1.7.2 in my forge i get the error NoSuchFieldException when do Field achPageCurrent = GuiAchievements.class.getDeclaredField("currentPage"); while currentPage is clearly there
-
1.7.2 Achievement.getName()
i added in the precedent version this in my client proxy public void addAchievementDesc(Achievement achievement, String name, String description) { String achName = achievement.getName(); LanguageRegistry.instance().addStringLocalization(achName, "en_US", name); LanguageRegistry.instance().addStringLocalization(achName+".desc", "en_US", description); } and i used it to add achievement name and descriprion, but now achievement.getName() doesn't exist anymore
-
Gradle decompiled vanilla source instead of classes
oopps i also dragged setaccessible
-
Gradle decompiled vanilla source instead of classes
so you mean before calling tickevent, so public static class TickHandlerClient { Field achPageCurrent = GuiAchievements.class.getDeclaredField("currentPage"); achPageCurrent.setAccessible(true); @SubscribeEvent public void onTick(TickEvent.ClientTickEvent event) { ................
-
Gradle decompiled vanilla source instead of classes
and so where do i have to put getdeclaredfield? and also will this work if getdeclaredfield is called once and currentPage int changes?
-
Gradle decompiled vanilla source instead of classes
Yeah i was getting confused, anyway for anyone looking for the final code to add your custom GUI to your achievement pages (In your TickEvent Event), here it is: public static class TickHandlerClient { //private GuiScreen lastGuiOpen; @SubscribeEvent public void onTick(TickEvent.ClientTickEvent event) { //CLIENT TICK END if (event.phase == TickEvent.Phase.END) { Minecraft minecraft = Minecraft.getMinecraft(); GuiScreen CurrentGUI = minecraft.currentScreen; int PageToDisplay; if (CurrentGUI != null) { //GETTING THE PRIVATE CURRENTPAGE INT GuiAchievements AchievementGui = new GuiAchievements(CurrentGUI, minecraft.thePlayer.getStatFileWriter()); Field achPageCurrent = GuiAchievements.class.getDeclaredField("currentPage"); achPageCurrent.setAccessible(true); if (CurrentGUI instanceof GuiAchievements) { //PageToDisplay = ((GuiAchievements)CurrentGUI).currentPage; PageToDisplay = achPageCurrent.getInt((GuiAchievements)CurrentGUI); if (AchievementPage.getTitle(PageToDisplay).equals("Glacia")) { minecraft.thePlayer.openGui(mod_Glacia.instance, GlaciaCommonProxy.GUI_ID_ACHIEVEMENTS, minecraft.theWorld, PageToDisplay, 0, 0); } } if (CurrentGUI instanceof GuiAchievementsGlacia) { PageToDisplay = ((GuiAchievementsGlacia)CurrentGUI).currentPage; if (!AchievementPage.getTitle(PageToDisplay).equals("Glacia")) { GuiAchievements OldPageGUI = new GuiAchievements(CurrentGUI, minecraft.thePlayer.getStatFileWriter()); //var16.currentPage = PageToDisplay; achPageCurrent.setInt(OldPageGUI, PageToDisplay); FMLClientHandler.instance().displayGuiScreen(minecraft.thePlayer, OldPageGUI); } } } } } }
-
Gradle decompiled vanilla source instead of classes
nope mo probs: i'm setting the int on the new GuiAchievements i created, while i need to set the int on the already existent GuiAchievements, and so var15 casted to GuiAchievements, so (GuiAchievements)var15 .....
-
Gradle decompiled vanilla source instead of classes
okay but will setInt really set the protected int currentpage in GuiAchievement to another value?
-
Gradle decompiled vanilla source instead of classes
I understand but... Oh wait like this? GuiScreen var15 = minecraft.currentScreen; GuiAchievements GuiAchievements = new GuiAchievements(var15, minecraft.thePlayer.getStatFileWriter()); Field achPageCurrent = GuiAchievements.class.getDeclaredField("currentPage"); achPageCurrent.setAccessible(true); int achCurrentPage = achPageCurrent.getInt(GuiAchievements); and then achPageCurrent.setInt(GuiAchievements, 0);
-
Gradle decompiled vanilla source instead of classes
i am getting confused so can you please help me just with this? the value i want to get, and then set is currentPage in GuiAchievements.class, what are the codes to get and then set it PLEEEASE (SAD FACE) PS: forum buttons aren't working
-
Gradle decompiled vanilla source instead of classes
also as i am reading, access transformer modifies access to public only on forge, but in the game client accesses are still private or am i wrong?
-
Gradle decompiled vanilla source instead of classes
wait the problem is i have also to modify the int, i don't just have to get it, so this won't work anyway
-
Gradle decompiled vanilla source instead of classes
is this gonna work? GuiScreen var15 = minecraft.currentScreen; GuiAchievements GuiAchievements = new GuiAchievements(var15, minecraft.thePlayer.getStatFileWriter()); Field achPageCurrent = GuiAchievements.class.getDeclaredField("currentPage"); achPageCurrent.setAccessible(true); int achCurrentPage = Integer.parseInt((String) achPageCurrent.get(GuiAchievements));
-
Gradle decompiled vanilla source instead of classes
how to? never used'em
IPS spam blocked by CleanTalk.