Passing rotations to models

Implemented passing of rotations to models. Removed unused unlisted
properties. Included dummy grinder model. Found bugs that have to be
fixed.
Referencing #10.
This commit is contained in:
elix-x
2016-06-30 15:51:42 +02:00
parent 0be0635a8f
commit e24d166f6a
10 changed files with 60 additions and 23 deletions
+2 -11
View File
@@ -128,19 +128,10 @@ public abstract class AEBaseBlock extends Block implements IAEFeature
return this.featureFullName;
}
public static final UnlistedBlockPos AE_BLOCK_POS = new UnlistedBlockPos();
public static final UnlistedBlockAccess AE_BLOCK_ACCESS = new UnlistedBlockAccess();
@Override
protected final BlockStateContainer createBlockState()
protected BlockStateContainer createBlockState()
{
return new ExtendedBlockState( this, this.getAEStates(), new IUnlistedProperty[] { AE_BLOCK_POS, AE_BLOCK_ACCESS } );
}
@Override
public final IBlockState getExtendedState( final IBlockState state, final IBlockAccess world, final BlockPos pos )
{
return ( (IExtendedBlockState) super.getExtendedState( state, world, pos ) ).withProperty( AE_BLOCK_POS, pos ).withProperty( AE_BLOCK_ACCESS, world );
return new ExtendedBlockState( this, this.getAEStates(), new IUnlistedProperty[] {} );
}
protected IProperty[] getAEStates()