JavaDoc Style

Example 1

/**
 * Called when the block is right clicked.
 *
 * @param entity The entity that right clicked this object. Most likely a player.
 * @param side The side it was clicked.
 * @param hit The position it was clicked.
 * @return {@code true} if the right click action does something.
 */
public boolean onRightClick(Entity entity, int side, Vector3d hit) {
    return false;
}

Example 2

/**
 * Called to get the BlockFactory that refers to this Block class.
 *
 * @return The {@link nova.core.block.BlockFactory} that refers to this Block class.
 */
public final BlockFactory getFactory() {
    return (BlockFactory) components.get(FactoryProvider.class).factory;
}