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.

Oninaig

Members
  • Joined

  • Last visited

Everything posted by Oninaig

  1. I have a FakePlayer class that extends EntityPlayer (so by definition, FakePlayer is also an EntityPlayer). For packet handling I am trying to cast FakePlayer as a EntityClientPlayerMP as such: Side side = FMLCommonHandler.instance().getEffectiveSide(); if(side == Side.SERVER) { //We are on the server side EntityPlayerMP player = (EntityPlayerMP)thePlayer; } else if(side == Side.CLIENT) { EntityClientPlayerMP player = (EntityClientPlayerMP) thePlayer; player.sendQueue.addToSendQueue(packet); } else{ //Error! } where thePlayer is the FakePlayer object. This throws the following error: onicraft.FakePlayer cannot be cast to net.minecraft.client.entity.EntityClientPlayerMP Any ideas?
  2. Where exactly would you put that code?
  3. I have looked at buildcraft and he too uses setBlockwithNotify to replace blocks with air blocks once they are mined. My issue is that when I do the same thing the blocks do get replaced but I cant walk into the new 'air' blocks without being pushed back away from them as if they are still solid blocks.
  4. I am currently working on a block that will act as a quarry. However, I am currently stuck on how to actually target a specific block in the world for destruction. I have tried world.setBlockWithNotify(x,y,z,0) but after the blocks were destroyed I could not run into the area as I kept hitting an invisible wall of blocks (the new 'air' blocks i guess?). Any ideas?

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.