Jump to content

Recommended Posts

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

 

 

 

 

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

 

 

 

 

Posted

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.

Posted

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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