perromercenary00 Posted May 30, 2016 Posted May 30, 2016 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 Quote
perromercenary00 Posted May 30, 2016 Author Posted May 30, 2016 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 Quote
perromercenary00 Posted May 30, 2016 Author Posted May 30, 2016 well i find the reason coz mi blocks are not setting in the right rotations when placed, a search|replace accident but still curios by the deprecated things Quote
perromercenary00 Posted May 30, 2016 Author Posted May 30, 2016 well i find the reason coz mi blocks are not setting in the right rotations when placed, a search|replace accident but still curios by the deprecated things Quote
Ernio Posted May 30, 2016 Posted May 30, 2016 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. Quote 1.7.10 is no longer supported by forge, you are on your own.
Ernio Posted May 30, 2016 Posted May 30, 2016 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. Quote 1.7.10 is no longer supported by forge, you are on your own.
Recommended Posts
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.