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.

Featured Replies

Posted

good nigths

i been moving mi mod to 1.9.4

and realize than all mi extructures system is fucked up

the blockStates of resulting blocks are not whats itd suspouse to be

 

so i notice this line marked as deprecated

IBlockState state = bloque.getStateFromMeta(nblkstid);

 

and so its

 

    public IBlockState getActualState(IBlockState state, IBlockAccess worldIn, BlockPos pos)

    {

        return state;

    }

 

    @Deprecated

    public IBlockState withRotation(IBlockState state, Rotation rot)

    {

        return state;

    }

 

    @Deprecated

    public IBlockState withMirror(IBlockState state, Mirror mirrorIn)

    {

        return state;

    }

 

i been using all of this in mi blocks, vainilla blocks seems to still using them whithout trouble

but in mi blocks  i set a system out and notice than is geting -1

 

 

// #################################################################################################3
/**
 * Convert the given metadata into a BlockState for this Block
 */
@Override
public IBlockState getStateFromMeta(int meta) {

	IBlockState estado = this.getDefaultState();
	System.out.println("######      Meta ="+meta);
}

 

[21:36:17] [server thread/INFO] [sTDOUT]: [mercenarymod.blocks.slab.loza00:getStateFromMeta:338]: ######      Meta =-1

[21:36:17] [server thread/INFO] [sTDOUT]: [mercenarymod.blocks.slab.loza00:getStateFromMeta:338]: ######      Meta =-1

 

############################

what is replacing the deprecated methods ??

 

 

thanks for reading

 

 

 

 

  • Author

good nigths

i been moving mi mod to 1.9.4

and realize than all mi extructures system is fucked up

the blockStates of resulting blocks are not whats itd suspouse to be

 

so i notice this line marked as deprecated

IBlockState state = bloque.getStateFromMeta(nblkstid);

 

and so its

 

    public IBlockState getActualState(IBlockState state, IBlockAccess worldIn, BlockPos pos)

    {

        return state;

    }

 

    @Deprecated

    public IBlockState withRotation(IBlockState state, Rotation rot)

    {

        return state;

    }

 

    @Deprecated

    public IBlockState withMirror(IBlockState state, Mirror mirrorIn)

    {

        return state;

    }

 

i been using all of this in mi blocks, vainilla blocks seems to still using them whithout trouble

but in mi blocks  i set a system out and notice than is geting -1

 

 

// #################################################################################################3
/**
 * Convert the given metadata into a BlockState for this Block
 */
@Override
public IBlockState getStateFromMeta(int meta) {

	IBlockState estado = this.getDefaultState();
	System.out.println("######      Meta ="+meta);
}

 

[21:36:17] [server thread/INFO] [sTDOUT]: [mercenarymod.blocks.slab.loza00:getStateFromMeta:338]: ######      Meta =-1

[21:36:17] [server thread/INFO] [sTDOUT]: [mercenarymod.blocks.slab.loza00:getStateFromMeta:338]: ######      Meta =-1

 

############################

what is replacing the deprecated methods ??

 

 

thanks for reading

 

 

 

 

Mojang appears to be using @Deprecated as a mark of vanilla MC methods that should be used by internals and subclasses of Block.

 

So nope - there is no replacement, this is just weird way of things.

1.7.10 is no longer supported by forge, you are on your own.

Mojang appears to be using @Deprecated as a mark of vanilla MC methods that should be used by internals and subclasses of Block.

 

So nope - there is no replacement, this is just weird way of things.

1.7.10 is no longer supported by forge, you are on your own.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

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.