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.

vanyserezhkin

Members
  • Joined

  • Last visited

Everything posted by vanyserezhkin

  1. Great idea, but where is documentation how to do it?
  2. Hello Everyone! in renderblocks: public class RenderBlocks { // ... public boolean renderBlockByRenderType(Block par1Block, int par2, int par3, int par4) { int var5 = par1Block.getRenderType(); par1Block.setBlockBoundsBasedOnState(this.blockAccess, par2, par3, par4); switch (var5) { // ... default: return FMLRenderAccessLibrary.renderWorldBlock(this, blockAccess, par2, par3, par4, par1Block, var5); } // ... public boolean renderPistonBase(Block par1Block, int par2, int par3, int par4, boolean par5) { int var6 = this.blockAccess.getBlockMetadata(par2, par3, par4); boolean var7 = par5 || (var6 & != 0; int var8 = BlockPistonBase.getOrientation(var6); //... EOF I want to render block, that has orientation, like a piston, exactly like a piston, but meta is block type and behavior, so i can't use meta, but i cannot use default piston renderer because of heavy binding to meta value. How can i easily render it? it is a block family, that must be rotated by wrench/screwdriver, i want something like rp does with it's blocks.
  3. Configuration.getOrCreateBlockIdProperty() try to give my highest numbers =) but, i just want first byte, and did some work arround it, seems works =)
  4. Thanx, it is exactly what i want =)
  5. Hello everyone. i want to have way to get free block id for simplefying configuration process (like it made in redpower); how can i do it? did i missed something ? or here is no stnadard way to autoconfigure in forge? i thinked about something like cfg.load(); // read values if(BlockIDsIsConflicting && ChangingBlockIDsAllowed) { // get free block ids and set it. } cfg.save();
  6. Thank you. But ... it's not a reason to not check parameters =) it happens again, same files, different lines, forge 164 block ids same as on server, i just have a copy of server config. happens some time when i staring at teleporter pipe
  7. tested in 57 and 160 java.lang.NullPointerException at um.a(SourceFile:28) at tw.a(RenderItem.java:68) at tw.a(RenderItem.java:415) at ahu.a(RenderManager.java:188) at ws.a(SourceFile:64) at cw.b(EffectRenderer.java:172) at lr.a(EntityRenderer.java:1097) at lr.b(EntityRenderer.java:907) at net.minecraft.client.Minecraft.x(Minecraft.java:876) at net.minecraft.client.Minecraft.run(Minecraft.java:753) at java.lang.Thread.run(Unknown Source)

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.