Format sourcecode
This commit is contained in:
@@ -48,14 +48,22 @@ public final class BlockChargedQuartzOre extends BlockQuartzOre
|
||||
@Override
|
||||
public Item getItemDropped( final IBlockState state, final Random rand, final int fortune )
|
||||
{
|
||||
return AEApi.instance().definitions().materials().certusQuartzCrystalCharged().maybeItem()
|
||||
return AEApi.instance()
|
||||
.definitions()
|
||||
.materials()
|
||||
.certusQuartzCrystalCharged()
|
||||
.maybeItem()
|
||||
.orElseThrow( () -> new MissingDefinition( "Tried to access charged certus quartz crystal, even though they are disabled" ) );
|
||||
}
|
||||
|
||||
@Override
|
||||
public int damageDropped( final IBlockState state )
|
||||
{
|
||||
return AEApi.instance().definitions().materials().certusQuartzCrystalCharged().maybeStack( 1 )
|
||||
return AEApi.instance()
|
||||
.definitions()
|
||||
.materials()
|
||||
.certusQuartzCrystalCharged()
|
||||
.maybeStack( 1 )
|
||||
.orElseThrow( () -> new MissingDefinition( "Tried to access charged certus quartz crystal, even though they are disabled" ) )
|
||||
.getItemDamage();
|
||||
}
|
||||
|
||||
@@ -93,7 +93,11 @@ public class BlockQuartzOre extends AEBaseBlock
|
||||
public Item getItemDropped( final IBlockState state, /* is null */
|
||||
final Random rand, final int fortune )
|
||||
{
|
||||
return AEApi.instance().definitions().materials().certusQuartzCrystal().maybeItem()
|
||||
return AEApi.instance()
|
||||
.definitions()
|
||||
.materials()
|
||||
.certusQuartzCrystal()
|
||||
.maybeItem()
|
||||
.orElseThrow( () -> new MissingDefinition( "Tried to access certus quartz crystal, even though they are disabled" ) );
|
||||
}
|
||||
|
||||
@@ -113,7 +117,11 @@ public class BlockQuartzOre extends AEBaseBlock
|
||||
@Override
|
||||
public int damageDropped( final IBlockState state )
|
||||
{
|
||||
return AEApi.instance().definitions().materials().certusQuartzCrystal().maybeStack( 1 )
|
||||
return AEApi.instance()
|
||||
.definitions()
|
||||
.materials()
|
||||
.certusQuartzCrystal()
|
||||
.maybeStack( 1 )
|
||||
.orElseThrow( () -> new MissingDefinition( "Tried to access certus quartz crystal, even though they are disabled" ) )
|
||||
.getItemDamage();
|
||||
}
|
||||
|
||||
@@ -32,6 +32,7 @@ import appeng.api.util.IOrientableBlock;
|
||||
import appeng.block.AEBaseBlock;
|
||||
import appeng.helpers.MetaRotation;
|
||||
|
||||
|
||||
public class BlockQuartzPillar extends AEBaseBlock implements IOrientableBlock
|
||||
{
|
||||
public static final PropertyEnum<EnumFacing.Axis> AXIS_ORIENTATION = PropertyEnum.create( "axis", EnumFacing.Axis.class );
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* along with Applied Energistics 2. If not, see <http://www.gnu.org/licenses/lgpl>.
|
||||
*/
|
||||
|
||||
package appeng.decorative.solid;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user