Hey!
I keep taking glances at the Referenced Libraries and the code in them and they have a style that I personally adapted, but I just space everything out myself when coding. I was wondering if there is any way to have line breaks between the beginning and end of block codes. For instance:
/* Event fired when an entity dies */
@SubscribeEvent(priority = EventPriority.HIGHEST)
public void onLivingDeath(LivingDeathEvent event)
{
if (event.getEntityLiving() instanceof EntityLiving)
{
EntityLiving entity = (EntityLiving) event.getEntityLiving();
entity.playSound(SoundEvents.BLOCK_METAL_BREAK, 1.0F, 1.0F);
for (int i = 0; i < 50; ++i) //line break above
{
entity.worldObj.spawnParticle(EnumParticleTypes.BLOCK_CRACK,
entity.posX, entity.posY + (entity.height - 0.25D), entity.posZ,
Math.random() * 0.2D - 0.1D, Math.random() * 0.25D, Math.random() * 0.2D - 0.1D,
Block.getIdFromBlock(Blocks.REDSTONE_BLOCK)
);
}//line break below
if (...)
{
...
}
try
{
}
catch(...)
{
...
}
}
}
I've been trying to accomplish this for a lot of time, yet no success.
Any ideas?
Thanks!